Kungsgeten / org-brain

Org-mode wiki + concept-mapping
MIT License
1.72k stars 102 forks source link

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

Open tumashu opened 4 years ago

tumashu commented 4 years ago

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))))
Kungsgeten commented 4 years ago

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.

tumashu commented 4 years ago
 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.

Kungsgeten commented 4 years ago

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