Earlier in v1 when titles were basically notes, vs title with ID is a note, one could rename the title and the filename used to change. After v2 implementation when I change title I see the filename is still the same.
This work great for me. one little thing: from a UX perspective, I found it confusing that after renaming #+title and hitting C-x C-s the minibuffer prints a message saying that the buffer has been saved to /path/to/org-roam/old-title.org (even though it actually saves it to /path/to/org-roam/new-title.org as one would expect):
Saving file /path/to/org-roam/old-title.org...
Wrote /path/to/org-roam/old-title.org
I replaced the last line of code with the following two lines, which seems to fix the issue
(set-buffer-modified-p t)
(save-buffer))))
After hitting C-x C-s the minibuffer now prints
Saving file /path/to/org-roam/old-title.org...
Wrote /path/to/org-roam/old-title.org
Saving file /path/to/org-roam/new-title.org...
Wrote /path/to/org-roam/new-title.org
Disclaimer: I am new to elisp, so please correct me if I got anything wrong. Or if there is a better way to improve this.
Thanks for code sharing and for keeping the date prefix. After testing it I realized that it messes up the newly created nodes and prevents them from getting the date prefix when you hit C-c C-c to confirm the captured node. Is there a way to modify this code to make it distinguish newly created nodes from old ones?