      (if (org-before-first-heading-p)
          (line-end-position)
        (save-excursion (org-end-of-subtree) (point))))))
+
+;;;###autoload
+(defun +org/remove-link ()
+  "Unlink the text at point."
+  (interactive)
+  (unless (org-in-regexp org-bracket-link-regexp 1)
+    (user-error "No link at point"))
+  (save-excursion
+    (let ((remove (list (match-beginning 0) (match-end 0)))
+          (description (if (match-end 3)
+                           (match-string-no-properties 3)
+                         (match-string-no-properties 1))))
+      (apply #'delete-region remove)
+      (insert description))))
 
 ;;;###autoload
 (defun +org/toggle-checkbox ()

   ;; In case the above un-align tables
   (org-table-map-tables 'org-table-align t)))

;;;###autoload
(defun +org|realign-table-maybe ()
  "Auto-align table under cursor and re-calculate formulas."
  (when (org-at-table-p)
    (save-excursion
      (quiet! (org-table-recalculate)))))

;;;###autoload
(defun +org|update-cookies ()
  "Update counts in headlines (aka \"cookies\")."
  (when (and buffer-file-name (file-exists-p buffer-file-name))
    (org-update-statistics-cookies t)))

;;;###autoload
(defun +org/dwim-at-point ()

      (evil-insert 1))))

;;;###autoload
(defun +org/shifttab (&optional arg)
  "An alternative to `org-shifttab' which performs smart indentation if in
insert mode (evil). Otherwise, forwards to the original `org-shifttab'."
  (interactive)
  (cond ((org-at-table-p)
         (call-interactively #'org-table-previous-field))
        ((and (bound-and-true-p evil-mode)
              (evil-insert-state-p))
         (cond ((org-at-item-p)
                (org-list-indent-item-generic
                 -1 nil
                 (save-excursion
                   (when (org-region-active-p)
                     (goto-char (region-beginning)))
                   (org-list-struct))))
               ((org-at-heading-p)
                (ignore-errors (org-promote)))
               (t (call-interactively #'self-insert-command))))
        (t (org-shifttab arg))))

;;;###autoload
(defun +org/refresh-inline-images ()
