fzf is a general-purpose command-line fuzzy finder written in Go.
Questions tagged [fzf]
136 questions
29
votes
3 answers
Working solution for FZF most recent files in Vim?
I have a problem with finding a proper solution for most recently used files with the FZF Vim plugin.
This plugin should have features like:
show files opened in current vim session(like buffers)
filter files like NERD_tree, fugitive
I tried two…

tomekfranek
- 6,852
- 8
- 45
- 80
26
votes
7 answers
How to get fzf.vim ignore node_modules and .git folders?
I have fzf setup in vim with barely any customisation:
" fzf and ripgrep settings
set rtp+=/usr/local/opt/fzf
let g:fzf_action = {
\ 'ctrl-t': 'tab split',
\ 'ctrl-i': 'split',
\ 'ctrl-s': 'vsplit'
\ }
In my .bash_profile, I set the…

doctopus
- 5,349
- 8
- 53
- 105
24
votes
3 answers
widgets can only be called when ZLE is active
I have been dealing with this problem for almost a month now, and I feel frustrated, Any help would be greatly appreciated.
I am trying to write a widget for my takenote command. The purpose of the widget is to feed all the markdown files in ~/notes…

ExistMe
- 509
- 6
- 18
17
votes
6 answers
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…

samuset
- 275
- 1
- 2
- 13
16
votes
3 answers
How to enable AG in vim + fzf
I am new to vim. I read online that one of the best fuzzy finder in vim is fzf. I have started using it. But whenever I write the command :Ag I get ag is not found. I don't know what it means and I don't know how to fix it.

odbhut.shei.chhele
- 5,834
- 16
- 69
- 109
15
votes
2 answers
How to get a git's branch with fuzzy finder?
I found git examples with fzf(fuzzy finder) and they does work great.
like:
# fbr - checkout git branch
fbr() {
local branches branch
branches=$(git branch -vv) &&
branch=$(echo "$branches" | fzf +m) &&
git checkout $(echo "$branch" | awk…

whitesiroi
- 2,725
- 4
- 30
- 64
14
votes
2 answers
Backward search in ipython via FZF
The question is how can i use fzf for backward search in IPython shell?

Bohdan Biloshytskiy
- 375
- 1
- 12
13
votes
2 answers
how to exclude file name from fzf filtering after ripgrep search results?
I use a convenience package fzf.vim to integrate fzf with vim. The file search works perfect and has completely replaced CtrlP plugin, but the functionality to grep files has unfortunate side-effect of fzf thinking the auto-appended filename (by…

Alexander Tsepkov
- 3,946
- 3
- 35
- 59
13
votes
2 answers
fzf.vim changing working directory on the fly
When I use :Files in fzf.vim, it searches for the files in the current directory and the subdirectories. The current working directory is fixed. In the screenshot below, it is in light blue. Is there a way to dynamically change the working directory…

zcadqe
- 937
- 2
- 13
- 20
12
votes
4 answers
How to start fzf from a different directory than the current working directory?
I often use fzf to navigate the filesystem, especially the Alt-c key binding.
When invoked, fzf generates a list from the current working directory.
Is it possible to make fzf generate a list from a specified directory?
I have tried fzf , but…

Shuzheng
- 11,288
- 20
- 88
- 186
9
votes
3 answers
Is it possible to use fzf (command line fuzzy finder) with windows 10 git-bash?
I downloaded the .exe file and placed it into my PATH variable. fzf seems to work in command prompt. But I would like to use it in git-bash. When i use fzf in git-bash it seems to start but nothing happens.
Any advice would be helpful. I'm trying…

warnerm06
- 654
- 1
- 9
- 20
9
votes
6 answers
Get output from fzf in the terminal without executing it
fzf rocks! I want to use it to search bash history. When a match is found, I want it to be placed on the command line, but not executed so I can edit it further. (All of this is in a sourced bash function or script so it has access to my history.)
I…

Joe
- 351
- 2
- 16
8
votes
1 answer
How do I fuzzy find all files containing specific text using ripgrep and fzf and open it VSCode
I have the following command to fuzzy find files in the command line and to open the selected file in VSCode.:
fzf --print0 -e | xargs -0 -r code
Now I want to be able to search also file contents for a string. I am able to find the searched string…

BuZZ-dEE
- 6,075
- 12
- 66
- 96
8
votes
2 answers
tmux script for fast window switching with fzf-tmux gives me the wrong options
I've written the following which allows me to switch tmux window with fzf:
tmux list-windows -F "#I:#W" | fzf-tmux | cut -d ":" -f 1 | xargs tmux select-window -t
When I run this in a shell it works perfectly, giving me an fzf list of windows which…

GTF
- 8,031
- 5
- 36
- 59
7
votes
2 answers
multi process bash within fzf --preview feature
I am trying to use fzf in the following manner, I would like to be able to search for a term within my codebase and then with the preview window be able to see the file which contains the string I am searching for at the line where the string is…

Reginald Marr
- 387
- 2
- 16