mirror of
https://github.com/org-roam/org-roam
synced 2025-09-24 16:30:55 -05:00
(feat): support custom minibuffer matching function in org-roam-node-find (#2177)
This commit is contained in:
@@ -481,7 +481,7 @@ interactive calls FORCE always set to t."
|
||||
force))
|
||||
|
||||
;;;###autoload
|
||||
(cl-defun org-roam-node-find (&optional other-window initial-input filter-fn &key templates)
|
||||
(cl-defun org-roam-node-find (&optional other-window initial-input filter-fn pred &key templates)
|
||||
"Find and open an Org-roam node by its title or alias.
|
||||
INITIAL-INPUT is the initial input for the prompt.
|
||||
FILTER-FN is a function to filter out nodes: it takes an `org-roam-node',
|
||||
@@ -490,7 +490,7 @@ If OTHER-WINDOW, visit the NODE in another window.
|
||||
The TEMPLATES, if provided, override the list of capture templates (see
|
||||
`org-roam-capture-'.)"
|
||||
(interactive current-prefix-arg)
|
||||
(let ((node (org-roam-node-read initial-input filter-fn)))
|
||||
(let ((node (org-roam-node-read initial-input filter-fn pred)))
|
||||
(if (org-roam-node-file node)
|
||||
(org-roam-node-visit node other-window)
|
||||
(org-roam-capture-
|
||||
|
Reference in New Issue
Block a user