summaryrefslogtreecommitdiff
path: root/gnosis-dashboard.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-08-03 19:13:02 +0300
committerThanos Apollo <[email protected]>2024-08-03 19:14:14 +0300
commite13fecc617970115bbc4059e7aee05687e6871fb (patch)
treea7f4a505d93658f77530f50aa6642eb6b7d06112 /gnosis-dashboard.el
parenteb62e5a0c5a360e4181feddaaf3def177089e8d7 (diff)
New function: dashboard-suffix-query.
* Search for note content for QUERY.
Diffstat (limited to 'gnosis-dashboard.el')
-rw-r--r--gnosis-dashboard.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/gnosis-dashboard.el b/gnosis-dashboard.el
index 7d72abb..87e08fe 100644
--- a/gnosis-dashboard.el
+++ b/gnosis-dashboard.el
@@ -482,6 +482,11 @@ DASHBOARD-TYPE: either 'Notes' or 'Decks' to display the respective dashboard."
(cl-loop for note in gnosis-dashboard--selected-ids
do (gnosis-suspend-note (string-to-number note) t))
(gnosis-dashboard-return)))
+
+(transient-define-suffix gnosis-dashboard-suffix-query (query)
+ "Search for note content for QUERY."
+ (interactive "sSearch for note content: ")
+ (gnosis-dashboard-output-notes (gnosis-collect-note-ids :query query)))
(transient-define-prefix gnosis-dashboard-menu ()
"Transient buffer for gnosis dashboard interactions."
[["Actions"