jmespath / jmespath.terminal

JMESPath exploration tool in the terminal
Other
460 stars 54 forks source link

Change window focus with a keyboard #17

Open barlik opened 6 years ago

barlik commented 6 years ago

There's an option to click into the Input JSON window or JMESPath 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.

weibeld commented 1 year 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:

Also, search functionality would be useful:

The expression line should also accept a richer set of line editing commands. For example, similar ones as used in a typical Bash command line:

Alternatively, there could also be a Vim mode for editing the expression line with Vim commands.