Skip to content

Allow customization of fish key bindings #83

Description

@cparadis6191

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions