Before I open a pull request I just wanted to share what I did with my fzf tmux key bindings (which I originally based on this repo!) to allow for some customization.
Declare and use _fzf_tmux_* fish functions in fish key bindings:
cparadis6191/fzf-tmux.sh@d1c96fb
This allows for users in fish to simply redefine whichever _fzf_tmux_* function they like to get the customization they want. This is done by completely bypassing fzf-tmux.sh.
Next, add support for $FZF_TMUX_DEFAULT_OPTS so users can force _fzf_tmux_fzf in fzf-tmux.sh to use some different options:
cparadis6191/fzf-tmux.sh@161b2d3
This is similar in spirit to how the fzf --bash and fzf --fish key bindings work. This works in both bash and fish (and presumably Zsh). Users in bash can still redefine _fzf_tmux_fzf but now they have a new environment variable to use. And now, fish users who can't redefine the bash _fzf_tmux_fzf function can instead set $FZF_TMUX_DEFAULT_OPTS.
Before I open a pull request I just wanted to share what I did with my fzf tmux key bindings (which I originally based on this repo!) to allow for some customization.
Declare and use
_fzf_tmux_*fish functions in fish key bindings:cparadis6191/fzf-tmux.sh@d1c96fb
This allows for users in fish to simply redefine whichever
_fzf_tmux_*function they like to get the customization they want. This is done by completely bypassing fzf-tmux.sh.Next, add support for
$FZF_TMUX_DEFAULT_OPTSso users can force_fzf_tmux_fzfin fzf-tmux.sh to use some different options:cparadis6191/fzf-tmux.sh@161b2d3
This is similar in spirit to how the
fzf --bashandfzf --fishkey bindings work. This works in both bash and fish (and presumably Zsh). Users in bash can still redefine_fzf_tmux_fzfbut now they have a new environment variable to use. And now, fish users who can't redefine the bash_fzf_tmux_fzffunction can instead set$FZF_TMUX_DEFAULT_OPTS.