From af5add2783bfba7250546b93c5fbdde7d67fa15d Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Sat, 26 Jul 2025 13:44:23 +0200 Subject: [PATCH] Add fzf usage examples and keybindings to README MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index a2cbe38..e14ef1e 100644 --- a/README.md +++ b/README.md @@ -187,6 +187,24 @@ fd -H hidden # Include hidden files (-H) fd | fzf # Pipe to fzf for interactive selection ``` +#### fzf Usage Examples +```bash +fzf # Interactive file finder +ls | fzf # Fuzzy find from any list +history | fzf # Search command history +fd | fzf # Fast file finding with fuzzy selection +fd -t d | fzf # Find and select directories only +rg "pattern" | fzf # Search text then fuzzy filter results + +# Preview files while browsing +fzf --preview 'bat --style=numbers --color=always {}' +``` + +**Built-in zsh keybindings:** +- `Ctrl+T` - Insert selected files/directories into command line +- `Ctrl+R` - Search command history interactively +- `Alt+C` - Change to selected directory + ### Fonts - **Nerd Fonts**: FiraCode and JetBrains Mono with icon support