org-brain icon indicating copy to clipboard operation
org-brain copied to clipboard

[Suggest] Add original title as a nickname of entry when edit title

Open tumashu opened this issue 4 years ago • 3 comments

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))))

tumashu avatar Jul 24 '20 00:07 tumashu

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.

Kungsgeten avatar Jul 27 '20 08:07 Kungsgeten

 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.

tumashu avatar Jul 27 '20 08:07 tumashu

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

Kungsgeten avatar Jul 27 '20 08:07 Kungsgeten