m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-19 17:13:42 -05:00

Updated Examples (markdown)

NightMachinary
2019-08-04 22:15:20 +04:30
parent 50c000d4ec
commit 0087db9d1b

@@ -64,14 +64,14 @@ Table of Contents
# f mv # To move files. You can write the destination after selecting the files.
# f 'echo Selected:'
# f 'echo Selected music:' --extention mp3
# fc rm # To rm files in current directory
# fm rm # To rm files in current directory
f() {
sels=( "${(@f)$(fd "${fd_default[@]}" "${@:2}"|fz)}" )
test -n "$sels" && print -z -- "$1 ${sels[@]:q:q}"
}
# Like f, but not recursive.
fc() f "$@" --max-depth 1
fm() f "$@" --max-depth 1
```
### Opening files