junegunn / fzf-git.sh

bash and zsh key bindings for Git objects, powered by fzf
612 stars 53 forks source link

Ctrl-g Ctrl-b keybinding does not work if tmux prefix is Ctrl-b #3

Closed phelipetls closed 2 years ago

phelipetls commented 2 years ago

This happens either in zsh and bash, not sure how to work around it other than using a different keybinding.

junegunn commented 2 years ago

Good point, let me see what I can do.

junegunn commented 2 years ago

I've tried something like this only to find out the default bindkey always takes precedence over C-b in fzf-git key table.

set-option -g prefix c-b

bind -T fzf-git C-b send-keys C-g C-b
bind -n C-g switch-client -T fzf-git

Not sure what we should do. An easy solution would be to also bind these stuff to <ALT-G> <ALT-*>, or <CTRL-G> *. The latter will also solve #4.