diff options
Diffstat (limited to 'modules/scripts/yazi-file-chooser')
| -rw-r--r-- | modules/scripts/yazi-file-chooser/script.sh | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/scripts/yazi-file-chooser/script.sh b/modules/scripts/yazi-file-chooser/script.sh index e02c742..5e4b229 100644 --- a/modules/scripts/yazi-file-chooser/script.sh +++ b/modules/scripts/yazi-file-chooser/script.sh @@ -1,8 +1,8 @@ -# $1 = multiple selection (1/0) -# $2 = directory select mode (1/0) -# $3 = save file mode (1/0) -# $4 = initial directory path -# $5 = output path file (where portal expects selected paths) +# $1 toggles multiple selection +# $2 toggles directory select mode +# $3 toggles save file mode +# $4 is the initial directory path +# $5 is the output path file # multiple="$1" directory="$2" @@ -12,9 +12,9 @@ out="$5" # Pick directory vs single/multiple file if [ "$directory" = "1" ]; then - # --cwd-file outputs the final working directory path when exiting + # Outputs the final working directory path on exit exec yazi "$path" --cwd-file="$out" else - # --chooser-file writes all selected file path(s) to $out on exit + # Writes all selected file paths to the output file on exit exec yazi "$path" --chooser-file="$out" fi |
