hishtory icon indicating copy to clipboard operation
hishtory copied to clipboard

Feature: Customize keybindings

Open philipsd6 opened this issue 2 years ago • 2 comments

I just got bit by the fact that my eMacs muscle memory uses C-a for going to the beginning of a line, and C-k to kill the line forward. But within the search query input from C-r, this ends up deleting history entries.

It would be nice if we could customize the keybindings, so I could use (for example) C-S-backspace instead.

philipsd6 avatar Mar 13 '23 15:03 philipsd6

In the meantime, you can edit the config file. Change the C-r to C-. I mapped mine to ctrl+t

~/.hishtory/config.sh

__hishtory_bind_control_r() {
#  bind -x '"\C-r": __history_control_r'
  bind -x '"\C-t": __history_control_r'
}

rvnebon avatar Nov 24 '23 04:11 rvnebon

@ddworken from the config file it looks like it's ready. Can this issue be closed?

GRbit avatar Jul 17 '24 17:07 GRbit