Skip to content

Commit

Permalink
Add documentation of sync-rename functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
petermao committed Jun 27, 2023
1 parent 0541dd9 commit f2d5188
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@
the document to annotate.

*** new (all formats)
- ~org-noter-enable-sync-renames~ :: Optional feature to update document
paths when renaming or moving document files or notes files. This allows
you to change your mind later about the names and locations of your
document files and notes files without having to manually update all the
links.

- ~org-noter-toggle-notes-window-location~ (~M-T~) :: Toggle between
horizontal and vertical document/notes layout.

Expand Down
4 changes: 3 additions & 1 deletion org-noter-core.el
Original file line number Diff line number Diff line change
Expand Up @@ -2530,7 +2530,9 @@ Enables `org-noter--sync-doc-rename-in-notes' and
`dired-rename-file'.
In dired, this affects the renaming of supported document files
and .org files."
and .org files.
This feature can be turn off with `org-noter-disable-sync-renames'."
(interactive)
(advice-add 'dired-rename-file :after 'org-noter--sync-doc-rename-in-notes)
(advice-add 'dired-rename-file :after 'org-noter--sync-notes-rename-in-notes))
Expand Down

0 comments on commit f2d5188

Please sign in to comment.