2016-02-04 20:54:58 +01:00
|
|
|
# fzf
|
|
|
|
|
2021-05-20 16:13:41 -04:00
|
|
|
> Command-line fuzzy finder.
|
2021-06-11 18:52:21 +05:30
|
|
|
> Similar to `sk`.
|
2019-06-07 11:58:18 +01:00
|
|
|
> More information: <https://github.com/junegunn/fzf>.
|
2016-02-04 20:54:58 +01:00
|
|
|
|
2023-06-27 14:57:35 -07:00
|
|
|
- Start `fzf` on all files in the specified directory:
|
2016-02-04 20:54:58 +01:00
|
|
|
|
2021-06-11 18:52:21 +05:30
|
|
|
`find {{path/to/directory}} -type f | fzf`
|
2016-02-04 20:54:58 +01:00
|
|
|
|
2023-06-27 14:57:35 -07:00
|
|
|
- Start `fzf` for running processes:
|
2016-02-04 20:54:58 +01:00
|
|
|
|
2017-12-18 14:03:49 +03:30
|
|
|
`ps aux | fzf`
|
2016-02-04 20:54:58 +01:00
|
|
|
|
2017-05-12 11:29:18 +02:00
|
|
|
- Select multiple files with `Shift + Tab` and write to a file:
|
2016-02-04 20:54:58 +01:00
|
|
|
|
2022-12-06 07:47:56 +01:00
|
|
|
`find {{path/to/directory}} -type f | fzf --multi > {{path/to/file}}`
|
2016-02-04 20:54:58 +01:00
|
|
|
|
2023-06-27 14:57:35 -07:00
|
|
|
- Start `fzf` with a specified query:
|
2016-02-04 20:54:58 +01:00
|
|
|
|
2021-06-11 18:52:21 +05:30
|
|
|
`fzf --query "{{query}}"`
|
2016-02-04 20:54:58 +01:00
|
|
|
|
2023-06-27 14:57:35 -07:00
|
|
|
- Start `fzf` on entries that start with core and end with either go, rb, or py:
|
2016-02-04 20:54:58 +01:00
|
|
|
|
2021-06-11 18:52:21 +05:30
|
|
|
`fzf --query "^core go$ | rb$ | py$"`
|
2016-02-04 20:54:58 +01:00
|
|
|
|
2023-06-27 14:57:35 -07:00
|
|
|
- Start `fzf` on entries that not match pyc and match exactly travis:
|
2016-02-04 20:54:58 +01:00
|
|
|
|
2021-06-11 18:52:21 +05:30
|
|
|
`fzf --query "!pyc 'travis"`
|