about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rwxr-xr-xmodules/by-name/lf/lf/commands/scripts/trash_clear.sh2
-rwxr-xr-xmodules/by-name/lf/lf/commands/scripts/trash_restore.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/by-name/lf/lf/commands/scripts/trash_clear.sh b/modules/by-name/lf/lf/commands/scripts/trash_clear.sh
index de800074..e3c2f795 100755
--- a/modules/by-name/lf/lf/commands/scripts/trash_clear.sh
+++ b/modules/by-name/lf/lf/commands/scripts/trash_clear.sh
@@ -1,7 +1,7 @@
 # shellcheck shell=sh
 
 while read -r file; do
-    set -- "$@" "$file"
+    set -- "$@" "$(pwd)/$file"
 done <"$(conceal list | fzf --multi --ansi | awk '{for(i=3; i<=NF; i++) {print $i}}' | tmp)"
 
 trash empty --match=exact "$@"
diff --git a/modules/by-name/lf/lf/commands/scripts/trash_restore.sh b/modules/by-name/lf/lf/commands/scripts/trash_restore.sh
index 5e9847c3..aa9ca0dc 100755
--- a/modules/by-name/lf/lf/commands/scripts/trash_restore.sh
+++ b/modules/by-name/lf/lf/commands/scripts/trash_restore.sh
@@ -10,7 +10,7 @@ fs="$fs"
 id="$id"
 
 while read -r file; do
-    set -- "$@" "$file"
+    set -- "$@" "$(pwd)/$file"
 done <"$(conceal list | fzf --multi --ansi | awk '{for(i=3; i<=NF; i++) {print $i}}' | tmp)"
 
 trash restore --match=exact "$@"