fzf | : cherry_blossom : A command-line fuzzy finder | Command Line Interface library
kandi X-RAY | fzf Summary
kandi X-RAY | fzf Summary
[github-actions] ===. fzf is a general-purpose command-line fuzzy finder. It’s an interactive Unix filter for command-line that can be used with any list; files, command history, processes, hostnames, bookmarks, git commits, etc.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of fzf
fzf Key Features
fzf Examples and Code Snippets
Community Discussions
Trending Discussions on fzf
QUESTION
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:
...ANSWER
Answered 2021-Jun-06 at 19:39Install Git for Windows if you haven't already installed it.
Add the following line to your init.vim file.
let $PATH = "C:\Program\ Files\Git\usr\bin;" . $PATH
Save and Reload NeoVim.
QUESTION
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 result.
Currently to do that I press to enter in normal mode and then
:q
but ideally it would be much faster to map it to a key combination such as
How could I map keybindings that target only the FZF window? or Is there any key combination that already close the popup window without any further action?
Thanks in advance
...ANSWER
Answered 2021-Mar-01 at 16:44To vim I am still curious about such solution, but in my zsh I have this function:
QUESTION
I've been struggling to run an awk result as the arguments of a new awk command within a bash-script; something like this
...ANSWER
Answered 2021-May-25 at 10:43Your quoting is not really going to make it through xargs
the way you would like. It's not impossible to pull off, but I would instead do something like
QUESTION
a simple summary is in the title but to further explain:
Whenever i open my terminal (iterm2) i load into zsh but completions don't seem to work, then when i manually run source .zshrc
it does fully load. I've tried moving stuff around in my .zshrc file to see if the order of loading was incorrect but it didn't fix anything.
My .zshrc file:
...ANSWER
Answered 2021-May-11 at 10:39You're making two mistakes in your .zshrc
file:
- If you do
source $ZSH/oh-my-zsh.sh
, then you shouldn't also doautoload -U compinit && compinit
, because the former includes the latter. plugins=( ... )
should be done before doingsource $ZSH/oh-my-zsh.sh
. The former does not do anything by itself.
So, change the top of your .zshrc
file to this:
QUESTION
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
-C
for specifying the start directory.
...ANSWER
Answered 2021-Apr-18 at 10:08I had a more general issue which might be useful for you. The following is from a blog post I wrote about it:
Configuring FZF to search useful directories beyond the working directoryI use fzf both as a command line tool and from within Vim using the fzf.vim plugin. It makes finding (and opening) files intuitive, fast, and frees you from needing to remember their location or exact name. By default, fzf searches recursively within the current directory, which is often just what you want. If you need to search for a file in some directory beyond the current working directory you need to specify that path as an argument to fzf, after which it's business as usual (fzf will recursively search the specified directory).
The ProblemIt always felt a shame to have to occasionally precisely specify a path in order to get a fuzzy search going... precisely specifying a path is the exact thing that fzf is supposed to unburden your from! My initial approach was to supply the home directory path and let fzf search everything, the home directory path can be specified in only a couple of characters so there's no real burden in that case.
The problem with doing this is that you end up searching a lot of directories which you know don't have the file you want. The main offenders were directories you end up with if you install say, anaconda3. The results would be swamped with thousands of internal files, with very long paths. The long paths tended to 'soak up' any letters I entered in the search, so it was difficult for fzf to filter them out.
The SolutionYou can choose which searching tool fzf uses under the hood. The default is the standard linux find command, but you can also use fd, ripgrep or silver searcher. Apart from being a lot faster than the default find, these latter tools respect .gitignore files. This means that fzf will skip any files or directories listed in a .gitignore file. We can turn this feature to our advantage.
First, we install fd. If you run Ubuntu 19.04 (Disco Dingo) or newer, you can install the officially maintained package:
QUESTION
I am setting up neovim, with CoC.
It seems to work well, but with one big problem: My diagnostic windows are very large
I am not sure why this is. I would expect this to be only a few lines. Ideally, it should show up somewhere not directly over the code, but I'm not sure how to configure this.
This is my neovim config:
...ANSWER
Answered 2021-Apr-01 at 20:16Problem was
QUESTION
Been tinkering tonight but am unable to find a solution.
I've written a small script that I call with a "popup-shell" and that uses fzf
to select a file. I pass this file to marktext
appimage and disown the process, after which the "popup-shell" closes. Unfortunately, upon shell closure, the marktext
app is also closed.
I think the problem lies in that the executable is properly disowned, but the appimage mount-stuff is still subprocessing to the "popup-shell". Once the "popup-shell" close, so does the appimage mount-stuff, which in turn will cause marktext
to close.
process-tree-ish:
...ANSWER
Answered 2021-Mar-10 at 22:01You can use
QUESTION
I have a MacBook with Iterm2 with Zshell (zsh) and one of the add-ons I have is the command line fuzzy finder (fzf), but despite being added to my .zshrc it doesn't work. If I manually load it with source ~/.fzf.zsh
it works, and if I then reload my .zshrc source ~/.zshrc
it doesn't work again.
What could be the reason?
Here's most of my .zshrc file (see the line: # add fuzzy find):
...ANSWER
Answered 2021-Jan-22 at 13:46Something you do in .zshrc
following source ~/.fzf.zsh
breaks it. Make sure ~/.fzf.zsh
occurs after that, most easily accomplished by moving it to the end of the file.
QUESTION
EDIT: leaving this as some history for other searching similar problems Some of it is solved, but last questions still unresolved See after the ==== line.
I am using home manager and I set it up to provide me with neovim including some plugins. Unfortunately the coc-nvim plugin is no longer up to date so now I would like to package it from github and then import. I am new to nixos so there are many things I still miss, I believe.
My naive approach so far is:
.../neovim/default.nix
ANSWER
Answered 2021-Jan-18 at 16:40Ok I finally managed to get it working.
After more searching and getting lost it turns out nix has pkgs.vimUtils.buildVimPlugin
This solved my problem. My files now read:
QUESTION
Either nerdtree or fzf ignores .env, I have a .env in my working folder, but I can't find it with fzf nor in nerdtree.
Here's my vimrc: https://github.com/dipzera/nvim
...ANSWER
Answered 2021-Jan-13 at 14:48For NERDTree, try
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install fzf
fzf executable
fzf-tmux script for launching fzf in a tmux pane
Shell extensions
Key bindings (CTRL-T, CTRL-R, and ALT-C) (bash, zsh, fish)
Fuzzy auto-completion (bash, zsh)
Vim/Neovim plugin
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page