1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-28 06:55:33 +02:00
tldr/pages/common/fzf.md
Managor 23340cc6e0
common/*: reduce usage of "command-line" (part 1) (#16949)
Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com>
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
2025-06-29 11:48:18 +03:00

29 lines
711 B
Markdown

# fzf
> Fuzzy finder.
> Similar to `sk`.
> More information: <https://github.com/junegunn/fzf>.
- Start `fzf` on all files in the specified directory:
`find {{path/to/directory}} -type f | fzf`
- Start `fzf` for running processes:
`ps aux | fzf`
- Select multiple files with `<Shift Tab>` and write to a file:
`find {{path/to/directory}} -type f | fzf {{[-m|--multi]}} > {{path/to/file}}`
- Start `fzf` with a specified query:
`fzf {{[-q|--query]}} "{{query}}"`
- Start `fzf` on entries that start with core and end with either go, rb, or py:
`fzf {{[-q|--query]}} "^core go$ | rb$ | py$"`
- Start `fzf` on entries that not match pyc and match exactly travis:
`fzf {{[-q|--query]}} "!pyc 'travis"`