feat(lf): add trash command

This commit is contained in:
2025-08-19 20:47:33 +02:00
parent 26b24518d1
commit 807d74cf1a
+21
View File
@@ -10,8 +10,29 @@ set incsearch true
set incfilter true set incfilter true
set period 1 set period 1
cmd trash ${{
echo "Selected file(s):"
for file in $fx; do
echo " $file"
done
printf "Send to trash? [y/N] "
read -n1 ans
echo
case "$ans" in
[Yy])
for file in $fx; do
gio trash -- $file
done
;;
*)
;;
esac
}}
# map f filter # map f filter
# map j updir # map j updir
# map k down # map k down
# map l up # map l up
# map ; open # map ; open
map D trash