Questions tagged [plugin-fzf]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4
votes
2answers
968 views

VIM FZF, searching multiple directories

Using FZF in Vim, is it possible to search project directory and a library directory? For example when executing FZF, it would search directories: ~/project/ and ~/libs/include, and provide results.
3
votes
1answer
672 views

How to call the fzf Ag command with multiple arguments?

The plugin fzf.vim defines the following vim command here: command! -bang -nargs=* Ag call fzf#vim#ag(<q-args>, <bang>0)' the fzt#vim#ag function seems to allow passing all the ag ...
3
votes
1answer
743 views

How to exclude filenames from Ag search (via fzf.vim)?

I'm using (the fantastic) Ag, Silver Searcher, through (the fantastic) fzf.vim plugin. When I search for text, though, I don't want to see matches on file names. For example, :Ag finder shows every ...
3
votes
0answers
50 views

Cycle between modes in fzf.vim

I'm using fzf.vim instead of ctrlp.vim for quite some time now but there is one functionality that a miss quite a lot. In ctrlp.vim once you have the extension opened you can cycle between modes using ...
3
votes
1answer
637 views

Toggle fzf.vim if already open

I am trying to write a vim function to toggle the fzf window if it is already open using fzf.vim. The use case is if I am in the :Buffers view and I want to change to the :Files view if I try to ...
1
vote
1answer
223 views

How to remove entries from v:oldfiles list in neovim

I renamed a big folder that contains a lot of files I recently edited. After changing the name, my neovim's v:oldfiles list contains the old names that is no longer accessible. How can I clean the ...
1
vote
1answer
682 views

Can I set the default search directory on fzf?

I set the following on my ~/.vimrc which sets the current directory to the location of the file on the buffer. au BufEnter * silent! :lcd%:p:h However, when I run the fzf command to search for a ...
1
vote
0answers
35 views

Vimscript infinite loop

I'm trying to combine fzf-bibtex with UltiSnips so that I can search my bibliography file and insert a BibTeX key automatically. I use the following function from fzf-bibtex (which calls the binaries ...
1
vote
0answers
262 views

Neovim freezes with FZF

I currently use 'junegunn/fzf.vim', along with the homebrew version of fzf in the command line to search within projects. My setup uses Neovim and Tmux, and I'm getting intermittent freezing when ...
1
vote
3answers
435 views

How can I change the cursor moving on fzf?

Similar to the question about ctrlp, I would like to know how to change the key remapping to move the cursor on fzf library. Right now, only the ctrl + k works to move the cursor upward, but all the ...
0
votes
1answer
76 views

Context aware fzf command

I would like to have a file extension aware :FZF command, so that when I choose a file with enter from the fzf prompt, and that file has an extension that matches a list (say (pdf|mp3|jpg)), it opens ...
0
votes
1answer
38 views

Why does `:call f(…)` do nothing while mapping it to a binding works?

I'm not really sure how to describe this behavior better than with the example I'm dealing with. I'm trying to write a custom completion using fzf-vim ... and as I'm looking through the documentation,...
0
votes
1answer
299 views

FZF --preview in Vim returns zsh shell error

I have been trying out FZF with Neovim. I installed it via a nvim plugin package manager. I have not installed it for the command line. When trying to see file previews :FZF --preview="head -$LINES {}...
0
votes
1answer
46 views

How to add a fallback when :b buffer change fails

I have 2 ways to open a file for editing: :b <filename> to switch to an opened buffer -- imagine that I have a lot of folders containing index.html so by using :b I know I am working on the one ...
0
votes
1answer
123 views

Contextual key bindings when a specific context menu is open

I recently installed fzf CLI fuzzy search utility, and the accompanying fzf.vim file with it. They both work great, and I have been enjoying my experience with them thus far. However, I'd like to ...
0
votes
2answers
64 views

Insert filepath from FZF window in buffer

In the fzf plugin you can define mappings for the fzf window to open the selected file in a vertical split, etc. How can I make fzf mapping to insert the path of the selected file as a string into the ...
0
votes
1answer
75 views

How to use fzf :Buffers/:Files commands from vim terminal buffer

When in (Vim) terminal mode, I can use and then :e! fileName to open a file. Note that without the !, the following error message is displayed "E948: Job still running (add ! to end the job)". How ...
0
votes
0answers
27 views

How to customize cursor jump location for fzf's commands?

I have the following mapping that I abuse a lot to navigate around vimwiki pages: " map fzf's :BLines to // map // :BLines<CR> The problem is that when I hit Enter, cursor jumps to the ...
0
votes
0answers
45 views

FzfTags looks in incorrect folder when tags file is in .git folder

I keep my tags file in the .git folder (as described here by tpope). This works pretty well. I have notagrelative set. When I use FZF's tag search (:FzfTags), it can find the tags alright but when I ...
0
votes
0answers
30 views

How to limit a key binding to a single key

I'm having trouble putting to words what I'm looking for, please mark as duplicate if appropriate I have a key binding that launches a search based on a fuzzy finder (specifically bindings to fzf and ...
-1
votes
1answer
390 views

How can I pass extra flags to FZF/ripgrep commands with the leader key?

Current functionality When I use <C-P> and <C-Å> I can respectively search file names and contents. Everything works great. Target functionality When prepending either with <leader&...