mirror of
https://github.com/chrisbarrett/nursery
synced 2025-09-22 16:20:55 -05:00
Revert buffers after editing links
This commit is contained in:
@@ -122,7 +122,13 @@ It is called with the new node as the current buffer."
|
|||||||
|
|
||||||
(when (looking-at org-link-any-re)
|
(when (looking-at org-link-any-re)
|
||||||
(replace-match replacement t t))))
|
(replace-match replacement t t))))
|
||||||
(write-region (point-min) (point-max) file))))
|
(write-region (point-min) (point-max) file)))
|
||||||
|
|
||||||
|
(pcase-dolist (`(,file . ,_) backlinks-by-file)
|
||||||
|
(when-let* ((buf (find-buffer-visiting file)))
|
||||||
|
(with-current-buffer buf
|
||||||
|
(revert-buffer t t)))))
|
||||||
|
|
||||||
;; Tell org-roam that files changed behind its back.
|
;; Tell org-roam that files changed behind its back.
|
||||||
(org-roam-db-sync))
|
(org-roam-db-sync))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user