commit f12073d05b1e74da7f0d01005b214e4d8f997ea8
parent c1a50f276acd3813a06b784b0a43965730e02d3a
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Sun, 18 Oct 2020 23:19:37 +0200
lf: small change to rc file
Former-commit-id: 5575eb42f247f974b7ae57cc64f87045d182b2e7
Diffstat:
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/lf/lfrc b/lf/lfrc
@@ -28,6 +28,15 @@ set preview true
# }}}
# Command definitions {{{
+# the prefix shows what kind of command it is
+# $: runs as shell command
+# %: runs as piped shell command (stdout => statusline)
+# !: runs as interactive shell command (puts lf in the bg)
+# :: runs as lf command
+#
+# commands run in the shell, you can use $f, $fs, $fx vars.
+# you can also send remote commands.
+
# define a custom 'open' command
cmd open $opener $fx
@@ -137,7 +146,7 @@ cmd trash %{{
printf "Trash $f? [Y/n/a] "
read -r ans
case "$ans" in
- Y*|y*) trash "$f";;
+ Y*|y*) trash "$f"; printf "Deleted $f.\n";;
A*|a*) trash $fx; printf "Deleted all files.\n"; break;;
*) printf "Not deleting $f\n"; sleep 1;;
esac