Fzf: Bash/Emacs-style Key-Bindings

Created on 27 Oct 2018  路  3Comments  路  Source: junegunn/fzf

I really love fzf except for the default key-bindings as I want the Bash/Emacs mappings. Especially:

  • Ctrl-k: Delete rest of the line into the kill buffer
  • Ctrl-t: Transpose characters around cursor
  • Alt-t: Transpose words around cursor
    and probably more I'll disover as I needed them.

Is there a way to change these?

question

Most helpful comment

CTRL-K functionality is available via kill-line action

fzf --bind ctrl-k:kill-line

If you use it a lot, you might want to add --bind option to your FZF_DEFAULTS_OPTS.

transpose-words is not needed since fzf doesn't care about the order of the search terms. i.e. foo bar and bar foo are treated the same. If you want foo to appear before bar, type in foobar instead.

transpose-chars is not available.

All 3 comments

CTRL-K functionality is available via kill-line action

fzf --bind ctrl-k:kill-line

If you use it a lot, you might want to add --bind option to your FZF_DEFAULTS_OPTS.

transpose-words is not needed since fzf doesn't care about the order of the search terms. i.e. foo bar and bar foo are treated the same. If you want foo to appear before bar, type in foobar instead.

transpose-chars is not available.

In which file should I put

fzf --bind ctrl-k:kill-line

?

Was this page helpful?
0 / 5 - 0 ratings