aboutsummaryrefslogtreecommitdiffstats
path: root/modules/scripts/yazi-file-chooser/script.sh
diff options
context:
space:
mode:
Diffstat (limited to 'modules/scripts/yazi-file-chooser/script.sh')
-rw-r--r--modules/scripts/yazi-file-chooser/script.sh21
1 files changed, 0 insertions, 21 deletions
diff --git a/modules/scripts/yazi-file-chooser/script.sh b/modules/scripts/yazi-file-chooser/script.sh
deleted file mode 100644
index 7978222..0000000
--- a/modules/scripts/yazi-file-chooser/script.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/usr/bin/env bash
-# $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"
-# save="$3"
-path="$4"
-out="$5"
-
-# Pick directory vs single/multiple file
-if [ "$directory" = "1" ]; then
- # Outputs the final working directory path on exit
- exec yazi "$path" --cwd-file="$out"
-else
- # Writes all selected file paths to the output file on exit
- exec yazi "$path" --chooser-file="$out"
-fi