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

Ctrl+y in vi mode not working #93

Open
FreddieOliveira opened this issue Aug 19, 2020 · 2 comments
Open

Ctrl+y in vi mode not working #93

FreddieOliveira opened this issue Aug 19, 2020 · 2 comments

Comments

@FreddieOliveira
Copy link

Description

When configured to use vi mode, Ctrl+y doesn't yank the previous cut text.

Steps to reproduce

  1. Add key_bindings = vi to your config file
  2. Open litecli and type pragma table_info('albums')
  3. Hit Ctrl+w
  4. Hit Ctrl+y

Expected behavior

Ctrl+w should cut table_info('albums') text and Ctrl+y should paste it back

Actual behavior

Ctrl+w cut the text as intended, but Ctrl+y doesn't do anything.

@amjith
Copy link
Member

amjith commented Aug 22, 2020

@FreddieOliveira Don't mean to pass the buck here, but we use prompt-toolkit to build the CLI which provides the vi-mode option. Would you mind filing the bug with prompt-toolkit?

@FreddieOliveira
Copy link
Author

Ooh, ok. But I guess it would be nice to have a user friendly way of adding custom keyboard shortcuts. Even if prompt-toolkit changes the shortcuts, it still won't be possible to add custom ones.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants