prompt: CTRL+DELETE deletes history entries
commitb965adc33f10538fd621d874faff244001c6baf4
authorMassimiliano Brocchini <massimiliano.brocchini@gmail.com>
Sun, 9 Mar 2014 14:18:56 +0000 (9 15:18 +0100)
committerUli Schlachter <psychon@znc.in>
Wed, 12 Mar 2014 09:16:27 +0000 (12 10:16 +0100)
tree4686c5c787710cadac9871e8dadc509dad494288
parent620732a0158843acd8cd29bac09ff02ee11d5679
prompt: CTRL+DELETE deletes history entries

Pressing CTRL+DELETE removes the visible history entry, if any, then moves to the next history entry (like pressing DOWN would do).
If the last history entry is removed the previous one is shown in the prompt (like pressing UP would do).
CTRL+DELETE works on history entries only: i.e. it has no effect on a command entered but not executed yet.
To implement above behaviour I added saving history table to file on Escape key press.

Signed-off-by: Massimiliano Brocchini <massimiliano.brocchini@gmail.com>
Signed-off-by: Uli Schlachter <psychon@znc.in>
lib/awful/prompt.lua.in