TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Fzf – a command-line fuzzy finder

279 点作者 ewuhic大约 3 年前

25 条评论

john-tells-all大约 3 年前
Another wonderful tool is &quot;entr&quot;. It just runs a program when files change.<p>It&#x27;s incredible.<p>I use it 20-40 times an <i>hour</i> to do very fast Dev&#x2F;DevOps development:<p>- &quot;run Pytest when Python files change&quot; - &quot;I forgot how to use ps, run my-ps.sh when it changes and show me the output&quot; - &quot;rebuild all these Kubernetes resources when I edit the YAML files&quot; - &quot;run fast lint, then unit test Python files, then invoke one and show me the results&quot;<p>Link: <a href="https:&#x2F;&#x2F;jvns.ca&#x2F;blog&#x2F;2020&#x2F;06&#x2F;28&#x2F;entr&#x2F;" rel="nofollow">https:&#x2F;&#x2F;jvns.ca&#x2F;blog&#x2F;2020&#x2F;06&#x2F;28&#x2F;entr&#x2F;</a>
评论 #30741348 未加载
评论 #30740754 未加载
评论 #30740822 未加载
评论 #30740221 未加载
mustache_kimono大约 3 年前
I have been really inspired by &#x27;fzf&#x27; recently. Wrote a fun little ZFS utility[0] which I intended to just script with &#x27;fzf&#x27;, but have since found skim[1], or &#x27;sk&#x27;, and now use it both as my sole fuzzy finder app (because it&#x27;s <i>supposed to be interactive</i> and it&#x27;s faster!), and as a library for my little utility.<p>I like them both for making fun zsh key bindings, so, so easy.<p>[0]: <a href="https:&#x2F;&#x2F;github.com&#x2F;kimono-koans&#x2F;httm" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;kimono-koans&#x2F;httm</a> [1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;lotabout&#x2F;skim" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;lotabout&#x2F;skim</a>
评论 #30743859 未加载
RadioactiveMan大约 3 年前
Fzf is brilliant. Recently I found fzrepl (<a href="https:&#x2F;&#x2F;github.com&#x2F;danielfgray&#x2F;fzf-scripts&#x2F;blob&#x2F;master&#x2F;fzrepl" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;danielfgray&#x2F;fzf-scripts&#x2F;blob&#x2F;master&#x2F;fzrep...</a>), which blew my mind. It uses fzf and its preview window to create a repl for other programs, such as jq. That&#x27;s great for figuring out a query for jq since I use it so rarely.
bilalq大约 3 年前
Fzf was life changing when I first stumbled on it. Even cooler was the rabbit hole it led me down. Through fzf I discovered fd, bat, delta, and rg.<p>That first exposure to fzf brought the biggest change to my workflow in years.
评论 #30741154 未加载
评论 #30742955 未加载
评论 #30740449 未加载
pridkett大约 3 年前
Once I installed fzf.fish[0], my command line experience was radically changed for the better. The goodness of fish’s command line with search ability from fzf and seeing context from bat. Great for searching your history, commit hashes, variable names, and just about everything else.<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;PatrickF1&#x2F;fzf.fish" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;PatrickF1&#x2F;fzf.fish</a>
elromulous大约 3 年前
ripgrep[1] is usually mentioned in the same breath. I use them both daily. Truly indispensable.<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;BurntSushi&#x2F;ripgrep" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;BurntSushi&#x2F;ripgrep</a>
评论 #30740763 未加载
评论 #30740163 未加载
boshanib大约 3 年前
Am I the only one who prefers FZY ? <a href="https:&#x2F;&#x2F;github.com&#x2F;jhawthorn&#x2F;fzy" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jhawthorn&#x2F;fzy</a>
评论 #30744448 未加载
评论 #30741310 未加载
atilimcetin大约 3 年前
If you still don&#x27;t know how useful fzf is, you should start with integrating fzf and ctrl+r (reverse search).
评论 #30740297 未加载
评论 #30741041 未加载
otikik大约 3 年前
It has replaced vim’s “open file” and “switch to buffer” for me. I occasionally use it in the command line, by expanding *. Not that often as in Vim, but very useful.<p>I still need to find a satisfactory way to do “find in files” with vim. I use a custom script to call ag and it’s enough, but a bit clunky at times.
评论 #30741969 未加载
评论 #30741889 未加载
评论 #30741600 未加载
评论 #30741471 未加载
blindseer大约 3 年前
If you are interested in using fzf in neovim, check out this project: <a href="https:&#x2F;&#x2F;github.com&#x2F;ibhagwan&#x2F;fzf-lua" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ibhagwan&#x2F;fzf-lua</a>.
vmandela大约 3 年前
If you like fzf, iterfzf offers an easy way to add the same selection functionality into python scripts.<p><a href="https:&#x2F;&#x2F;pypi.org&#x2F;project&#x2F;iterfzf&#x2F;" rel="nofollow">https:&#x2F;&#x2F;pypi.org&#x2F;project&#x2F;iterfzf&#x2F;</a><p>The python package also includes the fzf binary.
gilbetron大约 3 年前
An awesome use case for fzf is to use it as a selector for a bunch of lines of text. So we have a script that gets the latest docker images and then we pipe it to fzf allowing you to select which one of them you want to use.<p>Just a small thing to add on to the awesomeness that is fzf!
评论 #30740389 未加载
sxg大约 3 年前
Extremely valuable tool that I use nearly every day. Also check out the vim plugin: <a href="https:&#x2F;&#x2F;github.com&#x2F;junegunn&#x2F;fzf.vim" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;junegunn&#x2F;fzf.vim</a>.
评论 #30738589 未加载
评论 #30738487 未加载
评论 #30738521 未加载
endorphine大约 3 年前
I can totally see why fzf is a great utility and is indeed very cool but I don&#x27;t see real value other than as a Vim plugin for Ctrl-P.<p>For a Ctrl-R replacement in the terminal, it never sticked with me, because getting more than 1 results was distracting.<p>Also, if I&#x27;m in a directory and want to open a file in vim that I&#x27;m not sure of its location, I do `vim` and then Ctrl-P.<p>I tried to incorporate it a few times in my workflow, but I couldn&#x27;t see the value that would justify the overhead of having to learn a different tool.
评论 #30741062 未加载
评论 #30743790 未加载
pletnes大约 3 年前
Also you can pipe stuff into it and select interactively. Splendid for when you don’t quite know what you’re looking for - yet.
E39M5S62大约 3 年前
fzf is a fantastic tool. The main interface of ZFSBootMenu is created with it. It has a pretty solid set of scripting capabilities!<p><a href="https:&#x2F;&#x2F;github.com&#x2F;zbm-dev&#x2F;zfsbootmenu&#x2F;blob&#x2F;master&#x2F;media&#x2F;v1.11.0-multi-be.png" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;zbm-dev&#x2F;zfsbootmenu&#x2F;blob&#x2F;master&#x2F;media&#x2F;v1....</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;zbm-dev&#x2F;zfsbootmenu&#x2F;blob&#x2F;master&#x2F;zfsbootmenu&#x2F;lib&#x2F;zfsbootmenu-lib.sh#L93" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;zbm-dev&#x2F;zfsbootmenu&#x2F;blob&#x2F;master&#x2F;zfsbootme...</a>
wyclif大约 3 年前
I use fzf from within vim every day and I can&#x27;t imagine working without it.
stanislavb大约 3 年前
Here they are some alternatives: <a href="https:&#x2F;&#x2F;www.libhunt.com&#x2F;junegunn&#x2F;fzf" rel="nofollow">https:&#x2F;&#x2F;www.libhunt.com&#x2F;junegunn&#x2F;fzf</a>
评论 #30741624 未加载
pizza大约 3 年前
ripgrep, fzf, fd-find, ctrl-r, history-substring-search oh-my-zsh plugin, exa --tree --depth=x, tldr-pages, all that combined... chef&#x27;s kiss
aryamaan大约 3 年前
What&#x27;s the way I can run fzf for words than characters.<p>I would to like to use it for my web-history. And maybe for webpages I have visited too.
thetadot大约 3 年前
i use fzf daily - especially in Vim. thanks for this<p>another resource I found valuable early on: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=qgG5Jhi_Els" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=qgG5Jhi_Els</a><p>EDIT: just realised this is the repo README by the fzf creator. he mentions Samoshkin&#x27;s video also but it&#x27;s worth repeating
diego898大约 3 年前
I’d love to incorporate fzf into a popup-everywhere tool like Alfred! If anyone has done something similar please let me know!
评论 #30739092 未加载
uptheroots大约 3 年前
FZF is one of the best programs I&#x27;ve ever used
snihalani大约 3 年前
This product is so gold. &lt;3
kbd大约 3 年前
This tool isn&#x27;t &quot;news&quot;, it&#x27;s been a staple of my environment for years, but it&#x27;s trending so upvoted. I use fzf <i>everywhere</i>, it&#x27;s greatly enhanced my workflow. Recommend fzf-tab to use fzf for zsh autocompletion.