feature: support vi key bindings (ala readline/bash/psql vi modes)
Is it possible to set vi key bindings in usql ?
@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 Thanks for the response!
Is it possible to set vi key bindings in usql ?
This would be a good feature.
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.
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.