feedforward
feedforward copied to clipboard
kill whole line shortcut
Would be useful to define a shortcut to kill all the line where the cursor is.
At the moment there's the kill-line (C-k), but it requires to many digits to accomplish the task.
The keybind could be C-S-k.
Hmm but C-k only requires two keys whereas C-S-k requires three?
Yes, but C-k kills a line from the cursor to the end of the line (\n excluded), I wanted a command like the dd in VI, where the current line is deleted completely (\n included)
I did some researches/explorations about that and I learned that:
- The emacs keybind for
kill-whole-lineseems to beC-S-Backspace, notC-S-k - It's not that easy to catch
C-Sevents on ncurses (as you said in #22 )
Enabling logs, I noticed that the C-S-Backspace combination generates an EventCharacter '\b', that's generated also with C-Backspace, so maybe that could be our shortcut to remove a line.
Other information, C-S-Backspace, C-Backspace and C-h launch the same event (ord == 8)
FWIW, I use ctrl-a ctrl-k for this