mirror of
https://github.com/chrisbarrett/nursery
synced 2025-09-30 17:00:56 -05:00
Teach org-roam-rewrite-rename to default to the node at point
This commit is contained in:
@@ -140,8 +140,7 @@ NODE is the node to update.
|
|||||||
|
|
||||||
NEW-TITLE is the new title to use. All backlinks will have their
|
NEW-TITLE is the new title to use. All backlinks will have their
|
||||||
descriptions updated to this value."
|
descriptions updated to this value."
|
||||||
(interactive (let* ((suggested-title (-some->> (org-roam-node-at-point) (org-roam-node-title)))
|
(interactive (let ((node (or (org-roam-node-at-point) (org-roam-node-read))))
|
||||||
(node (org-roam-node-read suggested-title nil nil t "Rename: ")))
|
|
||||||
(list node (read-string "New title: " (org-roam-node-title node)))))
|
(list node (read-string "New title: " (org-roam-node-title node)))))
|
||||||
(org-roam-node-visit node)
|
(org-roam-node-visit node)
|
||||||
(org-save-all-org-buffers)
|
(org-save-all-org-buffers)
|
||||||
|
Reference in New Issue
Block a user