-
Notifications
You must be signed in to change notification settings - Fork 143
Effective with fzf
When you input:
z -I vim
History directories matching vim
will be sorted by frecent
and sent to fzf:
You can use arrow key UP
/DOWN
(as well as CTRL
+J
/K
) to move around the cursor (red >
symbol) then <ENTER>
to accept or <ESC>
/CTRL+D
to give up.
If you are not satisfied with the result, continue to input some space separated keywords to filter the result:
After input keyword git
, only 6 paths are left. You may want to use cursor to select one, or continue input one more keyword:
Now, you have inputed two keyword git
and sk
, only one path is left. Press enter to select or <Backspace>
to modify your keywords, or <ESC>
to give up.
NOTE: keywords are not required to be in order in fzf, /home/skywind/github/vim
can be matched with git sk
or sk git
. So, when you are using fzf, you can always append a space followed by a new keyword.
Remember to set your $TERM
to xterm-256color
.