mirror of
https://github.com/org-roam/org-roam
synced 2025-08-01 12:17:21 -05:00
(fix): widen before title extraction (#1232)
Prevent renaming file and changing links incorrectly due to using (org-narrow-to-subtree) and saving.
This commit is contained in:
@ -14,6 +14,7 @@
|
||||
- [#1199](https://github.com/org-roam/org-roam/issues/1199) make Org-roam link insertions respect `org-roam-link-title-format` everywhere.
|
||||
- [#1201](https://github.com/org-roam/org-roam/issues/1201) fix `org-roam-db-build-cache` failing in scenarios involving duplicate IDs and deleted files.
|
||||
- [#1226](https://github.com/org-roam/org-roam/issues/1226) only update relative path of file links
|
||||
- [#1232](https://github.com/org-roam/org-roam/issues/1232) fix incorrect title extractions from narrowed buffers
|
||||
|
||||
## 1.2.2 (06-10-2020)
|
||||
|
||||
|
@ -669,6 +669,7 @@ Reads from the \"roam_alias\" property."
|
||||
(defun org-roam--extract-titles (&optional sources nested)
|
||||
"Extract the titles from current buffer using SOURCES.
|
||||
If NESTED, return the first successful result from SOURCES."
|
||||
(org-with-wide-buffer
|
||||
(let (coll res)
|
||||
(cl-dolist (source (or sources
|
||||
org-roam-title-sources))
|
||||
@ -680,7 +681,7 @@ If NESTED, return the first successful result from SOURCES."
|
||||
(setq coll (nconc coll res))
|
||||
(setq coll res)
|
||||
(cl-return))))
|
||||
coll))
|
||||
coll)))
|
||||
|
||||
(defun org-roam--extract-tags-all-directories (file)
|
||||
"Extract tags from using the directory path FILE.
|
||||
|
Reference in New Issue
Block a user