mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-04 16:43:54 +00:00
35 lines
818 B
Plaintext
35 lines
818 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# fzf
|
|
|
|
> Fuzzy finder.
|
|
> Similar to `sk`.
|
|
> More information: <https://github.com/junegunn/fzf#usage>.
|
|
|
|
- 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 do not match `pyc` and contain `travis`:
|
|
|
|
`fzf {{[-q|--query]}} '!pyc travis'`
|