🌸 fzf|终端搜索,即选即用
① 模糊匹配文件与命令历史
② 预览窗口,边找边看内容
③ 接入 Bash/Zsh/Fish,组合工作流
练习:运行 fzf 选文件→开启 Shell 集成→Ctrl-R 搜历史;再接 bat 预览代码。
需命令行基础;快捷键需配置集成。
junegunn/fzf
MIT|图:官方 README t.co
1 like · 34 views
项目地址:junegunn/fzf
安装说明:junegunn/fzf
盒子实测:fzf 0.74.5,1 万路径 -f api ≈3.7 ms;脚本没 TTY 时用 -f,别硬开交互界面。
3 views
Repo #4: hatchzip — The Rust Archive Extractor You Need
Discover hatchzip, the in-place archive extractor written in Rust. It supports all major formats on every OS and saves you massive amounts of disk space. Perfect for developers and power users. Check it out here: junegunn/hatchzip
GitHub: xevrion/hatchzip
Part of the Weekly Top 5 GitHub Repos series. Every week, the 5 repos with the most new stars.
#GitHubTrending #GitHub #OpenSource #Dev #WeeklyTop5
21 views
Free GitHub tool: pick files quickly with fzf
fzf is a free, MIT-licensed fuzzy finder for the terminal. It takes a list of items and lets you narrow it by typing a few letters, then returns the item you select.
On a Mac with Homebrew:
1. `brew install fzf`
2. Run `fzf` from a folder to interactively choose a file.
You need a terminal and Homebrew for this route. No account or paid API is required. Optional shell shortcuts and completions need separate setup; the basic command works without them.
Official repo and installation guide: junegunn/fzf
1 point
Sweet! Well-expressed, and well-explored. It's easy to setup an interface that makes search a bit easier still, including showing you a list as you interactively filter history, with fzf, [gh-fzf].
Examples of what users use most frequently, the key-bindings.{bash,zsh} has history key binds [arch-fzf]. The developer, junegunn, writes about it more generally, and all the other fun ways you can apply it [dev-fzf].
For a few years, I wrote history files per shell-spawn, and loaded a batch of history from recent days to keep fresh what's in the immediately searchable history.
Nowadays, I've just offloaded that to atuin [atuin], which I install from brew or with cargo binstall. Much less configuration, and now get to quickly explicitly switch between history lists filtered as: global, host (you can sync among hosts), session, directory, -- I don't remember what filter session+ means.
- [gh-fzf]: junegunn/fzf
- [arch-fzf]: wiki.archlinux.org
- [dev-fzf]: junegunn.github.io
- [atuin]: atuin.sh
终端找文件和历史命令,总是翻半天?⌨️
fzf 提供模糊搜索和交互预览,还能配合 Shell 脚本。
键盘一搜就定位。🔎
junegunn/fzf
#Terminal #CLI #浇朋友 #蓝朋友 #互关 #fo
3 likes · 83 views
This is useful on non-customized machines, but I always install fzf now, including the shell integrations like fuzzy history search bound to ctrl-r.
junegunn/fzf
Too many files to hunt through?
fzf is a fuzzy finder for files, command history and almost any list.
Type a few letters and pick a match.
junegunn/fzf
#CLI #Terminal #fo
1 like · 26 views
While digging into it, I found I could reproduce the rendering issue with fzf alone, so I also filed an upstream issue with a minimal repro 😹
fzf#4938
1 like
Free GitHub tool: choose files quickly in Terminal with fzf
Ever run a command and wished you could search a list by typing a few letters? fzf is a free, open-source command-line fuzzy finder. It can help you pick a file from the current directory without remembering its full name.
On a Mac with Homebrew already installed, run `brew install fzf`. Move into a folder in Terminal, run `fzf`, type part of a filename, and press Enter to select it. The selected path is printed to the terminal. No account, subscription or paid API is required for this basic use.
It also has optional shell keybindings and integrations, but follow the project instructions to set those up. Official repo and installation guide: junegunn/fzf
1 point
Mentions
🌸 fzf|终端搜索,即选即用 ① 模糊匹配文件与命令历史 ② 预览窗口,边找边看内容 ③ 接入 Bash/Zsh/Fish,组合工作流 练习:运行 fzf 选文件→开启 Shell 集成→Ctrl-R 搜历史;再接 bat 预览代码。 需命令行基础;快捷键需配置集成。 junegunn/fzf MIT|图:官方 README t.co
项目地址:junegunn/fzf 安装说明:junegunn/fzf 盒子实测:fzf 0.74.5,1 万路径 -f api ≈3.7 ms;脚本没 TTY 时用 -f,别硬开交互界面。
Repo #4: hatchzip — The Rust Archive Extractor You Need Discover hatchzip, the in-place archive extractor written in Rust. It supports all major formats on every OS and saves you massive amounts of disk space. Perfect for developers and power users. Check it out here: junegunn/hatchzip GitHub: xevrion/hatchzip Part of the Weekly Top 5 GitHub Repos series. Every week, the 5 repos with the most new stars. #GitHubTrending #GitHub #OpenSource #Dev #WeeklyTop5
Free GitHub tool: pick files quickly with fzf fzf is a free, MIT-licensed fuzzy finder for the terminal. It takes a list of items and lets you narrow it by typing a few letters, then returns the item you select. On a Mac with Homebrew: 1. `brew install fzf` 2. Run `fzf` from a folder to interactively choose a file. You need a terminal and Homebrew for this route. No account or paid API is required. Optional shell shortcuts and completions need separate setup; the basic command works without them. Official repo and installation guide: junegunn/fzf
Sweet! Well-expressed, and well-explored. It's easy to setup an interface that makes search a bit easier still, including showing you a list as you interactively filter history, with fzf, [gh-fzf]. Examples of what users use most frequently, the key-bindings.{bash,zsh} has history key binds [arch-fzf]. The developer, junegunn, writes about it more generally, and all the other fun ways you can apply it [dev-fzf]. For a few years, I wrote history files per shell-spawn, and loaded a batch of history from recent days to keep fresh what's in the immediately searchable history. Nowadays, I've just offloaded that to atuin [atuin], which I install from brew or with cargo binstall. Much less configuration, and now get to quickly explicitly switch between history lists filtered as: global, host (you can sync among hosts), session, directory, -- I don't remember what filter session+ means. - [gh-fzf]: junegunn/fzf - [arch-fzf]: wiki.archlinux.org - [dev-fzf]: junegunn.github.io - [atuin]: atuin.sh
终端找文件和历史命令,总是翻半天?⌨️ fzf 提供模糊搜索和交互预览,还能配合 Shell 脚本。 键盘一搜就定位。🔎 junegunn/fzf #Terminal #CLI #浇朋友 #蓝朋友 #互关 #fo
This is useful on non-customized machines, but I always install fzf now, including the shell integrations like fuzzy history search bound to ctrl-r. junegunn/fzf
Too many files to hunt through? fzf is a fuzzy finder for files, command history and almost any list. Type a few letters and pick a match. junegunn/fzf #CLI #Terminal #fo
While digging into it, I found I could reproduce the rendering issue with fzf alone, so I also filed an upstream issue with a minimal repro 😹 fzf#4938
Free GitHub tool: choose files quickly in Terminal with fzf Ever run a command and wished you could search a list by typing a few letters? fzf is a free, open-source command-line fuzzy finder. It can help you pick a file from the current directory without remembering its full name. On a Mac with Homebrew already installed, run `brew install fzf`. Move into a folder in Terminal, run `fzf`, type part of a filename, and press Enter to select it. The selected path is printed to the terminal. No account, subscription or paid API is required for this basic use. It also has optional shell keybindings and integrations, but follow the project instructions to set those up. Official repo and installation guide: junegunn/fzf