org-brain
org-brain copied to clipboard
[Suggest] Add original title as a nickname of entry when edit title
For example:
(defun eh-org-brain-set-title (&optional entry new-title)
(interactive)
(let* ((entry (or entry (org-brain-entry-at-pt t)))
(title (org-brain-title entry))
(new-title (or new-title (read-string "Title: " title))))
(when (equal (length new-title) 0)
(error "Title must be at least 1 character"))
(org-brain-set-title entry new-title)
(when (y-or-n-p "Set original title as a nickname of entry? ")
(org-brain-add-nickname entry title))))
I can see the idea behind this but for me personally it would be annoying. The reason why I change a title is usually to capitalize it, add a word, or rephrase something. If I wanted the original title as a nickname I think it makes more sense just to keep the original title and add the "new title" as a nickname.
If I wanted the original title as a nickname I think it makes more sense just to keep the original title and add the "new title" as a nickname.
This works, but the "new title" will not be showed in vis buffer.
That's true, but perhaps that could be changed by using your feature suggested in #326 if the user wants to see all the nicknames