summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorache <ache@ache.one>2023-12-11 03:27:25 +0100
committerache <ache@ache.one>2023-12-11 03:27:25 +0100
commit6c92aed6a159a86416f9efda389c15ee10659136 (patch)
treef321dece5d2e20ebccbdb4fa0decb4c81ca31d83
parentUpdate current config (diff)
Support for quick yank info
-rwxr-xr-xrc.conf9
1 files changed, 6 insertions, 3 deletions
diff --git a/rc.conf b/rc.conf
index 7505195..8e608fb 100755
--- a/rc.conf
+++ b/rc.conf
@@ -335,9 +335,12 @@ map g? cd /usr/share/doc/ranger
map e edit
map du shell -p du --max-depth=1 -h --apparent-size
map dU shell -p du --max-depth=1 -h --apparent-size | sort -rh
-map yp shell -f echo -n %%d/%%f | xsel -i; xsel -o | xsel -i -b
-map yd shell -f echo -n %%d | xsel -i; xsel -o | xsel -i -b
-map yn shell -f echo -n %%f | xsel -i; xsel -o | xsel -i -b
+# Copy filepath
+map yp shell -f echo -n %d/%f | xsel -i; xsel -o | xsel -i -b
+# Copy current directory
+map yd shell -f echo -n %d | xsel -i; xsel -o | xsel -i -b
+# Copy filename (basename)
+map yn shell -f echo -n %f | xsel -i; xsel -o | xsel -i -b
# Filesystem Operations
map = chmod