1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-09-10 16:13:31 +02:00

fzf: add Chinese translation (#14912)

This commit is contained in:
Pr0m1x 2024-11-27 19:08:38 +08:00 committed by GitHub
parent 91e295b3ea
commit 864b1b260f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

29
pages.zh/common/fzf.md Normal file
View file

@ -0,0 +1,29 @@
# fzf
> 命令行模糊查找器。
> 类似于 `sk`.
> 更多信息:<https://github.com/junegunn/fzf>.
- 对指定目录中的所有文件启动 `fzf`:
`find {{路径/到/目录}} -type f | fzf`
- 为正在运行的进程启动 `fzf`:
`ps aux | fzf`
- 使用 `Shift + Tab` 选择多个文件并将结果写入文件:
`find {{路径/到/目录}} -type f | fzf --multi > {{路径/到/文件}}`
- 使用指定查询词启动 `fzf`:
`fzf --query "{{查询词}}"`
- 对以 core 开头、以 go, rb 或 py 结尾的条目启动 `fzf`:
`fzf --query "^core go$ | rb$ | py$"`
- 对不匹配 pyc 且完全匹配 travis 的条目启动 `fzf`:
`fzf --query "!pyc 'travis"`