mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-19 09:03:43 -05:00
Updated Examples (markdown)
17
Examples.md
17
Examples.md
@@ -121,17 +121,16 @@ fo() {
|
|||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
Run command/application and choose paths/files with fzf.
|
Run command/application and choose paths/files with fzf.
|
||||||
Always return control of the termainal to user (e.g. when opening GUIs).
|
Always return control of the termainal to user (e.g. when opening GUIs).
|
||||||
```sh
|
```sh
|
||||||
# Usage:
|
# Usage:
|
||||||
f cd # (hit enter, choose path)
|
f cd # (hit enter, choose path)
|
||||||
f cat # (hit enter, choose files)
|
f cat # (hit enter, choose files)
|
||||||
f vim # (hit enter, choose files)
|
f vim # (hit enter, choose files)
|
||||||
f vlc # (hit enter, choose files)
|
f vlc # (hit enter, choose files)
|
||||||
```
|
|
||||||
The function:
|
# the function:
|
||||||
```sh
|
|
||||||
f() {
|
f() {
|
||||||
# store the files from fzf
|
# store the files from fzf
|
||||||
IFS=$'\n' files=($(fzf --query="$2" --multi))
|
IFS=$'\n' files=($(fzf --query="$2" --multi))
|
||||||
|
|||||||
Reference in New Issue
Block a user