litecli
litecli copied to clipboard
Ctrl+y in vi mode not working
Description
When configured to use vi mode, Ctrl+y doesn't yank the previous cut text.
Steps to reproduce
- Add
key_bindings = vito your config file - Open litecli and type
pragma table_info('albums') - Hit Ctrl+w
- 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.
@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?
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.