mirror of
https://github.com/logseq/logseq.git
synced 2026-05-04 02:46:45 +00:00
feat: search inside the current page
This commit is contained in:
@@ -41,6 +41,7 @@
|
||||
:journals-length 2
|
||||
|
||||
:search/q ""
|
||||
:search/mode :global
|
||||
:search/result nil
|
||||
|
||||
;; custom shortcuts
|
||||
@@ -444,6 +445,10 @@
|
||||
[value]
|
||||
(set-state! :search/q value))
|
||||
|
||||
(defn set-search-mode!
|
||||
[value]
|
||||
(set-state! :search/mode value))
|
||||
|
||||
(defn set-editor-show-page-search!
|
||||
[value]
|
||||
(set-state! :editor/show-page-search? value)
|
||||
@@ -1116,6 +1121,10 @@
|
||||
[]
|
||||
(set-search-result! nil))
|
||||
|
||||
(defn get-search-mode
|
||||
[]
|
||||
(:search/mode @state))
|
||||
|
||||
(defn toggle!
|
||||
[path]
|
||||
(update-state! path not))
|
||||
|
||||
Reference in New Issue
Block a user