elvish icon indicating copy to clipboard operation
elvish copied to clipboard

Delete from command history by Key command

Open yulog opened this issue 1 year ago • 1 comments

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.

yulog avatar Jan 12 '24 13:01 yulog

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.

krader1961 avatar Jan 13 '24 04:01 krader1961