usql icon indicating copy to clipboard operation
usql copied to clipboard

feature: support vi key bindings (ala readline/bash/psql vi modes)

Open hiphamster opened this issue 4 years ago • 5 comments

Is it possible to set vi key bindings in usql ?

hiphamster avatar Apr 20 '21 05:04 hiphamster

@hiphamster not at this time. We would like to incorporate more options in general for "readline" support (see github.com/xo/rline) as well as a much better, pure-Go implementation that supports all of that kind of stuff, but it is not a priority at the moment. We're focused on a 'usable 1.0' at the moment, which means general usable functionality. I agree that something like vi bindings would be useful (I myself am a 20+ year veteran of vi and bash), so it will come one day! I can't realistically give any kind of ETA on that, however, as building usql is primarily a passion project and not a fulltime development endeavor.

kenshaw avatar Apr 20 '21 06:04 kenshaw

@kenshaw Thanks for the response!

hiphamster avatar Apr 21 '21 08:04 hiphamster

Is it possible to set vi key bindings in usql ?

This would be a good feature.

kstech-grin-co avatar Oct 07 '22 19:10 kstech-grin-co

I've been working on a 100% pure Go readline replacement, as I too am a heavy vi keybinding user in bash / others. I've noted here, and elsewhere, that a readline replacement is as large of (or larger!) project than usql itself. It'll get done, but I don't have an ETA.

kenshaw avatar Oct 07 '22 20:10 kenshaw

Hi, are there any updates regarding this? I like usql (thanks!), but miss modal vi-like keybindings.

Have you considered using an existing Go readline implementation, instead of writing your own? chzyer/readline seems popular. It hasn't received updates in a while, but such a library likely doesn't require frequent maintenance.

imiric avatar Mar 25 '24 08:03 imiric