Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Customize keybindings #81

Open
philipsd6 opened this issue Mar 13, 2023 · 1 comment
Open

Feature: Customize keybindings #81

philipsd6 opened this issue Mar 13, 2023 · 1 comment

Comments

@philipsd6
Copy link

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
Copy link

rvnebon commented Nov 24, 2023

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'
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants