enhance: j jump to a property key or value (selection mode)

We can support jump to any block in the future.
More enhancements need to be done including:
1. still focus on the block or property key/value after any property
operation
2. up/down/left/right support maybe?
This commit is contained in:
Tienson Qin
2024-02-28 21:30:49 +08:00
parent 7cec0e696f
commit 623043d363
10 changed files with 136 additions and 44 deletions

View File

@@ -48,6 +48,7 @@
[frontend.util :as util]
[frontend.util.cursor :as cursor]
[frontend.components.window-controls :as window-controls]
[frontend.components.jump :as jump]
[medley.core :as medley]
[goog.dom :as gdom]
[goog.object :as gobj]
@@ -920,6 +921,8 @@
(when (util/electron?)
(find-in-page/search))
(jump/jump)
(main {:route-match route-match
:margin-less-pages? margin-less-pages?
:logged? logged?