mirror of
https://github.com/logseq/logseq.git
synced 2026-06-01 19:01:22 +00:00
enhance: (()) to embed && [[]] to reference
This commit is contained in:
@@ -1609,10 +1609,9 @@
|
||||
(state/set-editor-action-data! {:pos (cursor/get-caret-pos input)
|
||||
:selected selected}))
|
||||
|
||||
(and (= prefix block-ref/left-parens)
|
||||
(not (config/db-based-graph? (state/get-current-repo))))
|
||||
(do
|
||||
(commands/handle-step [:editor/search-block :reference])
|
||||
(= prefix block-ref/left-parens)
|
||||
(let [db-based? (config/db-based-graph? (state/get-current-repo))]
|
||||
(commands/handle-step [:editor/search-block (if db-based? :embed :reference)])
|
||||
(state/set-editor-action-data! {:pos (cursor/get-caret-pos input)
|
||||
:selected selected})))))))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user