Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to solve CTRL-t key binding issue for fzf?

I recently found this command line tool called fzf. I installed it according to the instructions and it does work, except for the CTRL-T key binding. Even though, I installed the special stuff with the key bindings as per their instructions, and I also tried installing fzf downloaded from the git repo as opposed to via homebrew, all the CTRL-T key binding does, still, is swap the last two characters.

I found this discussion about this, but none of the answers offered worked for me.

edit: you can see it in the first video here what I want to achieve. edit 2: I'm using the Terminal of MacOs.

like image 342
samuset Avatar asked Mar 10 '18 09:03

samuset


1 Answers

I use zsh with Oh My Zsh on Mac.

If I put fzf before vi-mode in the plugin setting in .zshrc like

plugins=(... fzf ... vi-mode ...) 

Ctrl-t does not work showing ^T. Ctrl-r does not work, either.

But, if fzf comes AFTER vi-mode like

plugins=(... vi-mode ... fzf ...) 

no problem arises.

like image 165
T_T Avatar answered Sep 29 '22 01:09

T_T