2025-03-14 21:59:59 -06:00
|
|
|
# fzf
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
> Fuzzy finder.
|
2025-03-14 21:59:59 -06:00
|
|
|
> Similar to `sk`.
|
2025-12-16 10:20:31 -07:00
|
|
|
> More information: <https://github.com/junegunn/fzf#usage>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Start `fzf` on all files in the specified directory:
|
|
|
|
|
|
|
|
|
|
`find {{path/to/directory}} -type f | fzf`
|
|
|
|
|
|
|
|
|
|
- Start `fzf` for running processes:
|
|
|
|
|
|
|
|
|
|
`ps aux | fzf`
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
- Select multiple files with `<Shift Tab>` and write to a file:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
`find {{path/to/directory}} -type f | fzf {{[-m|--multi]}} > {{path/to/file}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Start `fzf` with a specified query:
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
`fzf {{[-q|--query]}} "{{query}}"`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
- Start `fzf` on entries that start with `core` and end with either `go`, `rb`, or `py`:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
`fzf {{[-q|--query]}} "^core go$ | rb$ | py$"`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
- Start `fzf` on entries that do not match `pyc` and contain `travis`:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`fzf {{[-q|--query]}} '!pyc travis'`
|