Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hiphamster opened this issue Apr 20, 2021 · 5 comments
Open
Labels
enhancement help wanted psql compat to enable compatibility with psql

Comments

@hiphamster
Copy link

Is it possible to set vi key bindings in usql ?

@kenshaw
Copy link
Member

kenshaw commented Apr 20, 2021

@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.

@hiphamster
Copy link
Author

@kenshaw Thanks for the response!

@kenshaw kenshaw changed the title Is it possible to set vi key bindings in usql ? feature: support vi key bindings (ala readline/bash/psql vi modes) May 3, 2021
@kenshaw kenshaw added enhancement help wanted psql compat to enable compatibility with psql labels May 3, 2021
@kstech-grin-co
Copy link

Is it possible to set vi key bindings in usql ?

This would be a good feature.

@kenshaw
Copy link
Member

kenshaw commented Oct 7, 2022

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.

@imiric
Copy link

imiric commented Mar 25, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement help wanted psql compat to enable compatibility with psql
Projects
None yet
Development

No branches or pull requests

4 participants