De-dups after `ekg-global-rename-tag'? #111
Replies: 3 comments 3 replies
-
Thanks, great find! I fixed this in the latest |
Beta Was this translation helpful? Give feedback.
-
https://github.com/ahyatt/ekg/blob/316798112e7423527bbb4d9a36f659f1c6cbdf83/ekg.el#L1351-1372 BTW, there's one thing I forgot to mention, Maybe change the interactive form from (interactive (list (completing-read "From tag: " (ekg-tags))
(completing-read "To tag: " (ekg-tags)))) to (interactive (list (completing-read "From tag: " (ekg-tags))
(string-trim (downcase (string-replace "," "" (completing-read "To tag: " (ekg-tags))))))) Hope you don't mind I mention it here. Zheng |
Beta Was this translation helpful? Give feedback.
-
Good idea, I've done it (a slightly different way)! |
Beta Was this translation helpful? Give feedback.
-
Hi @ahyatt ,
There are duplicate tags if the new tag name already exist in the note. Do we wanna do some cleanup?
For instance, a note with 2 tags:
After renaming "test 2" to "test 1"
Since the indexes are different, they will co-exist until the note is open and save again.
Zheng
Beta Was this translation helpful? Give feedback.
All reactions