rgieseke / textredux

Text-based interfaces for Textadept
http://rgieseke.github.io/textredux/
Other
58 stars 11 forks source link

Change backspace behavior in lists to delete only words #71

Closed snoopy closed 3 years ago

snoopy commented 3 years ago

The usual behavior for CTRL+Backspace is to delete the word left of the cursor. In TR this currently deletes the entire search query. This patch changes the behavior to the "normal" one.
The old way of deleting everything can still be achieved by using ALT+Backspace

rgieseke commented 3 years ago

I like that! Would be good to have the same behaviour for all keys (platforms), don't you think? Originally i thought it would be quicker to just retype when a query doesn't work but i agree that deleting just the last word would be quite useful.

snoopy commented 3 years ago

Updated, was this what you had in mind?
Personally I think having a way to delete everything is not a bad idea. Can't speak for the expected behavior when using CMD since I don't use MacOS.

rgieseke commented 3 years ago

Yes, thank you! I think it's better to have consistency between platforms (at least for me, i'm rarely on Macs these days). In my terminal Alt-Backspace also deletes the last word.