You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Suggestion:
It would be great to have a customizable binding for bashhub-i-search.
Motivation:
The current binding collides with the default backward-char binding.
Ideas:
This could be controlled with an env variable, I think this could be the easiest implementation and it's backwards-compatible.
Naive example:
# in .bashrc# rebind bashub to C-x C-bexport BH_BIND_PREFIX="\"\C-x\C-b\""# in bashhub.sh__bh_hook_bashhub() {
if [ -t 1 ];then# Alias to bind Ctrl + Bif [ -z"${BH_BIND_PREFIX+x}" ];thenbind'"\C-b":"\C-ubh -i\n"'elsebind"$BH_BIND_PREFIX"':"\C-ubh -i\n"'fifi# ...
The amount of quotes can be reduced most probably, but I think the example is good enough. What do you think? :)
The text was updated successfully, but these errors were encountered:
rafauke
changed the title
[Suggestion] make binding for bashub-i-search customizable
[Suggestion] make binding for bashhub-i-search customizable
Jul 27, 2022
Suggestion:
It would be great to have a customizable binding for
bashhub-i-search
.Motivation:
The current binding collides with the default
backward-char
binding.Ideas:
This could be controlled with an env variable, I think this could be the easiest implementation and it's backwards-compatible.
Naive example:
The amount of quotes can be reduced most probably, but I think the example is good enough. What do you think? :)
The text was updated successfully, but these errors were encountered: