From ed7d4f0a2ee215cc42b7ea737633a944b2b77791 Mon Sep 17 00:00:00 2001 From: Hayden Stanko <33015950+cuttlefisch@users.noreply.github.com> Date: Fri, 27 May 2022 20:21:44 -0700 Subject: [PATCH] (feat): support custom minibuffer matching function in org-roam-node-find (#2177) --- org-roam-node.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org-roam-node.el b/org-roam-node.el index 0b994b0..1581bd8 100644 --- a/org-roam-node.el +++ b/org-roam-node.el @@ -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-