Pluralise message according to number of renamed links

This commit is contained in:
Chris Barrett
2023-01-08 19:41:57 +13:00
parent 56bdb20cb0
commit b4322641ff

View File

@@ -218,7 +218,9 @@ descriptions updated to this value."
(length backlinks)
(if (= 1 (length backlinks)) "" "s"))))
(org-roam-rewrite--edit-backlinks backlinks node-id (org-roam-rewrite--node-formatted-title node new-title))
(message "Rewrote %s links to node." (length backlinks)))
(message "Rewrote %s link%s to node."
(length backlinks)
(if (= 1 (length backlinks)) "" "s")))
(t
(message "Rename completed.")))))
(run-hooks 'org-roam-rewrite-node-renamed-hook)))