From 0087db9d1b93e36d1f9cd149af21413dcb35dbbf Mon Sep 17 00:00:00 2001 From: NightMachinary <36224762+NightMachinary@users.noreply.github.com> Date: Sun, 4 Aug 2019 22:15:20 +0430 Subject: [PATCH] Updated Examples (markdown) --- Examples.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Examples.md b/Examples.md index c873692..738ea05 100644 --- a/Examples.md +++ b/Examples.md @@ -62,16 +62,16 @@ Table of Contents # Works only with zsh # Examples: # 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 +# f 'echo Selected:' +# f 'echo Selected music:' --extention mp3 +# 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}" + 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