Questions tagged [fzf]

fzf is a general-purpose command-line fuzzy finder written in Go.

136 questions
6
votes
0 answers

How to configure VIM Code completion with ctags and fzf

It is possible to configure fzf in vim insert mode to do code completion? The tags are generated and setup to work with vim. In vim omni completion is working well. But omni completion doesn't have support for fuzzy search. So i am looking for a way…
Paul
  • 303
  • 1
  • 7
6
votes
5 answers

How to hide terminal warning when Oh-my-ZSH plugin can't access external app

I've been using oh-my-zsh for a while and it's working great. I'd like to use the command-line fuzzy finder plugin so I enabled it in .zshrc: plugins=(fzf) However if "fzf" is not installed I get a warning when opening my terminal…
Zoltan King
  • 1,964
  • 4
  • 18
  • 38
6
votes
1 answer

How can I see a preview of a tmux session/window from outside of tmux?

While inside of tmux, I can press PREFIX w, which runs tmux choose-tree. This brings up an interactive session/window/pane selector that also displays a preview of the highlighted node. From a normal shell outside of tmux, I can run tmux attach -t…
shender
  • 1,243
  • 13
  • 17
6
votes
2 answers

Ignore node_modules with vim-fzf

I have defined a function to search for filename (), and a string () from git root directory asynchronously with fzf.vim plugin (I also have Ag installed). However, I can not manipulate the definition to ignore node_modules directory. The…
Sang
  • 4,049
  • 3
  • 37
  • 47
5
votes
2 answers

How to use fzf to search for directories only?

Here is a use case: I use fzf to search for a list of directories, which then used with the cd command: cd $(fzf) However, the fzf command only displays files, not directories. Is there a way to instruct fzf to select only directories?
Hai Vu
  • 37,849
  • 11
  • 66
  • 93
5
votes
1 answer

How to exclude results from fzf.vim search

I use fzf.vim a lot in my work, though don't know how to exclude incorrect lines from search results. Here is an example of the problem I have. I need to find every model.search_views occurrence, but get also model.search_views_smth occurrence also.…
Myroslav Hryshyn
  • 716
  • 7
  • 18
5
votes
1 answer

How make `reverse-i-search` history use fzf in irb or pry console

I have looked around, can not find anyway to use fzf to search history in irb or pry console. Is there any way make it?
Fangxing
  • 5,716
  • 2
  • 49
  • 53
5
votes
4 answers

How to open a file in a specific application from FZF

I'd like to use FZF to search for files and then have them open in an editor of my choice e.g. Sublime, Atom. I'm not sure how to configure my shell for this, I've tried the below but I can't get it to work. Can you help? Thanks! fe() { local files …
Alistair Colling
  • 1,363
  • 2
  • 19
  • 29
4
votes
1 answer

Formatting fzf multi-select output for mpv

The following works: # play file1 and then file 2: mpv "file1" "file 2" # use fzf to select a file and play that file: mpv "$(fdfind . /path/to/Music | fzf)" Now fzf -m allows for multi-select. However the following doesn't work: mpv "$(fdfind .…
Inspired_Blue
  • 2,308
  • 3
  • 15
  • 21
4
votes
2 answers

FZF VIM: removing leading portion of absolute path

I am using the following to search my project: let g:fzf_directories = join( \ [ \ "/some/long/path/to/project/dir", \ "more paths here..." \ ], ' ') let $FZF_DEFAULT_COMMAND = "rg --files --hidden --smart-case " .…
eclipse
  • 2,831
  • 3
  • 26
  • 34
4
votes
2 answers

preview not working on neovim 0.5 on windows 10 with fzf

i'm running neovim 0.5 with fzf-vim on windows 10 and can't seem to make preview to work. my init.vim per below: call plug#begin('~/AppData/Local/nvim/plugged') Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } Plug…
Frederick Zhang
  • 160
  • 1
  • 8
4
votes
3 answers

How to close FZF without select any result in VIM

I use fzf.vim to quickly find files in my projects in neovim. Sometimes either because I can't find what I'm looking for or because I forgot to do something before open the new file, I need to cancel and close the pop up window without selecting any…
Silveste
  • 189
  • 2
  • 11
4
votes
2 answers

Using Ripgrep with flags in fzf.vim

I am using function below to search content in files with ripgrep using fzf in vim function! RipgrepFzf(query, fullscreen) let command_fmt = 'rg --column --line-number --no-heading --color=always --smart-case -- %s || true' let initial_command =…
Tarun
  • 1,888
  • 3
  • 18
  • 30
4
votes
1 answer

Converting bash to fish function (use rga-fzf in fish)

I am trying to convert this bash/zsh function into fish. I want to use rga-fzf which is a function for zsh/bash using fzf together with ripgrep-all. (my default shell is fish) Here's the zsh/fish function: rga-fzf() { RG_PREFIX="rga…
ABeehive
  • 53
  • 4
4
votes
3 answers

Linux shell : Interactive Fuzzy-Search content in files using grep and fzf

I want to write a shell script that search for a pattern inside all the files in a specific directory (say, my '.config' folder). Using grep I wrote the following: grep -Ril "" .config Next I was trying to change the search pattern on the…
1
2
3
9 10