mirror of
https://github.com/org-roam/org-roam
synced 2025-09-20 16:10:56 -05:00
(fix) strip todo, priority, and tags from headline candidates (#1052)
Fixes #1047
This commit is contained in:
@@ -1203,8 +1203,6 @@ If USE-STACK, include the parent paths as well."
|
|||||||
(or (find-buffer-visiting file)
|
(or (find-buffer-visiting file)
|
||||||
(find-file-noselect file)))
|
(find-file-noselect file)))
|
||||||
(current-buffer)))
|
(current-buffer)))
|
||||||
(bol-regex (concat "^\\(?:" outline-regexp "\\)"))
|
|
||||||
(outline-title-fn (lambda () (buffer-substring-no-properties (point) (line-end-position))))
|
|
||||||
(outline-level-fn outline-level)
|
(outline-level-fn outline-level)
|
||||||
(path-separator "/")
|
(path-separator "/")
|
||||||
(stack-level 0)
|
(stack-level 0)
|
||||||
@@ -1212,11 +1210,9 @@ If USE-STACK, include the parent paths as well."
|
|||||||
(with-current-buffer buf
|
(with-current-buffer buf
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(goto-char (point-min))
|
(goto-char (point-min))
|
||||||
(while (re-search-forward bol-regex nil t)
|
(while (re-search-forward org-complex-heading-regexp nil t)
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(setq name (or (save-match-data
|
(setq name (substring-no-properties (or (match-string 4) "")))
|
||||||
(funcall outline-title-fn))
|
|
||||||
""))
|
|
||||||
(setq marker (point-marker))
|
(setq marker (point-marker))
|
||||||
(when use-stack
|
(when use-stack
|
||||||
(goto-char (match-beginning 0))
|
(goto-char (match-beginning 0))
|
||||||
|
Reference in New Issue
Block a user