Fzf: can change alt+c to other key combination?

Created on 21 Mar 2019  ·  1Comment  ·  Source: junegunn/fzf

  • Category

    • [x ] fzf binary

    • [ ] fzf-tmux script

    • [ ] Key bindings

    • [ ] Completion

    • [ ] Vim

    • [ ] Neovim

    • [ ] Etc.

  • OS

    • [x ] Linux

    • [ ] Mac OS X

    • [ ] Windows

    • [ ] Windows Subsystem for Linux

    • [ ] Etc.

  • Shell

    • [x] bash

    • [ ] zsh

    • [ ] fish

I use xshell connect to my virtual machine, alt+c is the xshell's default hot key.
through i disabled the xshell's alt+c, fzf can't use alt+c.
can change alt+c to other key conbination? like alt+x?

question

Most helpful comment

No option for that, but in bash, you can get the bind expression like so:

bind -s | grep '^"\\ec"'

Then you can use the expression to re-bind it to another key.

bind "$(bind -s | grep '^"\\ec"' | sed 's/\\ec/\\ex/')"

Or you can just fork/edit the source code.

In zsh, it's much easier: bindkey '\ex' fzf-cd-widget

>All comments

No option for that, but in bash, you can get the bind expression like so:

bind -s | grep '^"\\ec"'

Then you can use the expression to re-bind it to another key.

bind "$(bind -s | grep '^"\\ec"' | sed 's/\\ec/\\ex/')"

Or you can just fork/edit the source code.

In zsh, it's much easier: bindkey '\ex' fzf-cd-widget

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ahmedelgabri picture ahmedelgabri  ·  3Comments

jberglinds picture jberglinds  ·  3Comments

lbeier picture lbeier  ·  3Comments

fenuks picture fenuks  ·  3Comments

asilvadesigns picture asilvadesigns  ·  3Comments