noahgorstein / jqp

A TUI playground to experiment with jq
MIT License
2.19k stars 40 forks source link

Feature request: vi mode in the editor input box #34

Open qmacro opened 2 years ago

qmacro commented 2 years ago

Love that we have another interactive jq client, thank you for developing it. I was wondering if you'd consider vi mode in the editor input box? In other words, just like one has the ability to switch from the default (emacs) mode on the (*nix) command line to vi mode. See https://readline.kablamo.org/vi.html for background. I'm not sure how many folks use vi mode on the command line, but I do, and it makes things so much faster and more efficient for me, and would be amazing to have that same experience when constructing and editing filters in jqp.

Thanks!

noahgorstein commented 2 years ago

Thanks for the feedback and feature request @qmacro! I'm also a vi mode fella and agree this would make a great addition. Will explore implementing this into jqp.

gennaro-tedesco commented 1 year ago

I would endorse this feature too, it would be great to have vim mode built-in!

On a similar note, is it possible already do move around the preview windows via vim commands, in particular gg and G to go to the top/bottom and / to just search for a string? If not, do you think it would make a good feature request?