elves / elvish

Powerful scripting language & versatile interactive shell
https://elv.sh/
BSD 2-Clause "Simplified" License
5.53k stars 297 forks source link

Delete from command history by Key command #1751

Open yulog opened 5 months ago

yulog commented 5 months ago

I read #554 and deleted my history. But history is as follows.

36 store:del-cmd 1
37 store:del-cmd 20
38 store:del-cmd 24
39 store:del-cmd 22
40 store:del-cmd 23
...

I want to delete directly from list (=Ctrl+R) with a keystroke such as Ctrl+Del.

krader1961 commented 5 months ago

Note that this was requested in issue #554 but not implemented because the solution to that issue focused on the basic functionality. I would also argue that, since Elvish does not do duplicate command elimination, it makes more sense for a command history key binding to eliminate all instances of a command with the same character sequence rather than deleting a specific command sequence number as is done by store:del-cmd.