rtv icon indicating copy to clipboard operation
rtv copied to clipboard

[Request] Add support for common emacs/bash bindings such as Ctrl + W

Open indeedwatson opened this issue 6 years ago • 4 comments

I use Ctrl + W to delete a word very often, but it doesn't seem to work in rtv. Not a huge deal, but I thought it would be nice to have, since almost any terminal tool I've used has this behavior (including vim in instert mode).

indeedwatson avatar Apr 16 '18 17:04 indeedwatson

What command would Ctrl-w be mapped to?

michael-lazar avatar Apr 16 '18 18:04 michael-lazar

I don't think delete word is an existing command so it would have to be a new one.

indeedwatson avatar Apr 17 '18 13:04 indeedwatson

I mean what would "delete word" actually do in rtv? The comment editor c already opens an external program, and you can configure it to open emacs or whatever else. The only other place you can enter text is in the prompt / at the bottom of the screen. And in that case, you're not typically entering more than a single word.

michael-lazar avatar Apr 17 '18 16:04 michael-lazar

I suppose you're right, and that is indeed where I tried to use this keybind, since it's so ingrained in my muscle memory (I still accidentally close tabs in FF trying to delete words).

If the text search feature inside posts was to be implemented, then this would also be handy there.

Feel free to close it if you deem this isn't really useful enough.

indeedwatson avatar Apr 17 '18 16:04 indeedwatson