jmacdonald / amp

A complete text editor for your terminal.
https://amp.rs
Other
3.73k stars 105 forks source link

Make the delete key work as expected #127

Closed euhmeuh closed 5 years ago

euhmeuh commented 5 years ago

Hello! This is my first contribution to this project. Sorry if I don't respect the rules.

I wanted to map the delete key to something useful, and thought it would be useful to everyone. As the amp spirit is about "useful defaults", having the delete key mapped would be a plus.

In normal and insert modes, it acts like x (it acts like a reverse backspace). In select and select_line modes, it acts like d. In search mode it acts like d too (I'm not sure about this one, maybe it should behave like backspace).

jmacdonald commented 5 years ago

Hi, @euhmeuh!

I don't use delete myself, but for those that do, these look like very reasonable defaults. Thanks for taking the time to put this together. :slightly_smiling_face: