ddworken / hishtory

Your shell history: synced, queryable, and in context
https://hishtory.dev
MIT License
2.48k stars 46 forks source link

Feature: Customize keybindings #81

Open philipsd6 opened 1 year ago

philipsd6 commented 1 year ago

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.

rvnebon commented 10 months ago

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'
}
GRbit commented 2 months ago

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