litecli icon indicating copy to clipboard operation
litecli copied to clipboard

Ctrl+y in vi mode not working

Open FreddieOliveira opened this issue 5 years ago • 2 comments

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.

FreddieOliveira avatar Aug 19 '20 05:08 FreddieOliveira

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

amjith avatar Aug 22 '20 18:08 amjith

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.

FreddieOliveira avatar Aug 22 '20 20:08 FreddieOliveira