Open barlik opened 6 years ago
This feature would be extremely useful. There could be something simple like Tab for cycling between the panels/windows:
[Tab]
> Expression[Tab]
> Input[Tab]
> Result[Tab]
...
Then for navigating in the input and result windows, there should be keyboard shortcuts, preferably the same ones used by the pagers less
or more
:
j
: down one linek
: up one lineCtrl-F
: down one pageCtrl-B
: up one pageCtrl-D
: down half a pageCtrl-U
: up half a pageg
: go to beginning of documentG
: go to end of documentAlso, search functionality would be useful:
/
: search forward?
: search backwardn
: go to next search matchN
: go to previous search matchThe expression line should also accept a richer set of line editing commands. For example, similar ones as used in a typical Bash command line:
Ctrl-A
: go to beginning of lineCtrl-E
: go to end of lineCtrl-U
: delete from cursor to beginning of lineCtrl-K
: delete from cursor to end of lineCtrl-W
: delete one word to the left of cursorAlt-B
: move cursor one word backwardAlt-F
: move cursor one word forwardAlt-D
: delete word to the right of cursorAlt-Del
: delete word to the left of cursorAlternatively, there could also be a Vim mode for editing the expression line with Vim commands.
There's an option to click into the
Input JSON
window orJMESPath Result
window with a mouse so you can then scroll inside them. However, I cannot find a way to select the windows with a keyboard. Also, the scrolling inside the windows only works with the arrow keys so it's weird that you cannot select the windows without the mouse.