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
fzf-git uses C-g as the keybinding prefix, but I would like to keep C-g for its original use.
How about making the keybinding prefix configurable?
For zsh, I have implemented a way to set the prefix using an environment variable FZF_GIT_KEY_PREFIX, as shown below. kyanagi@8ef4a8c
I intended to implement this for bash as well, but I couldn't get it to work, so the implementation is currently limited to zsh only.
The text was updated successfully, but these errors were encountered:
Unfortunately, bash and zsh use different notations for key chords. In this case, \C-g vs. ^g. This makes it impossible to provide a simple, consistent option variable we can use across bash and zsh.
# Works in bash, but not in zshexport FZF_GIT_PREFIX='\C-g'# The oppositeexport FZF_GIT_PREFIX='^g'
🫤
This is probably a non-issue, because few people switch between the two shells, but still, not ideal.
Yes, I was aware that the configuration strings differ between bash and zsh.
I believe the options are either to prepare a single environment variable and ask users to configure it based on their choice of either bash or zsh, or to provide separate environment variables for bash and zsh.
If neither option is acceptable, we would have to give up on implementing it.
fzf-git uses
C-g
as the keybinding prefix, but I would like to keepC-g
for its original use.How about making the keybinding prefix configurable?
For zsh, I have implemented a way to set the prefix using an environment variable
FZF_GIT_KEY_PREFIX
, as shown below.kyanagi@8ef4a8c
I intended to implement this for bash as well, but I couldn't get it to work, so the implementation is currently limited to zsh only.
The text was updated successfully, but these errors were encountered: