peterh / liner

Pure Go line editor with history, inspired by linenoise
MIT License
1.05k stars 132 forks source link

Delete next word #94

Closed maxp-edcast closed 6 years ago

maxp-edcast commented 6 years ago

I came across this repo in hopes of understandinf how to use the InfluxDB CLI, which uses it.

I noticed that there is no way listed on the README to delete the next word after the cursor. I typically only use this to delete words, and never delete the previous word (it's just a personal habit).

Is there a way to get this functionality?

peterh commented 6 years ago

We could probably add that. What keystroke do you expect will "delete next word"? A bit of googling around suggests Alt-D.

maxp-edcast commented 6 years ago

Yeah I think Alt-D is standard.

maxp-edcast commented 6 years ago

Wow thanks so much.