From 6c92aed6a159a86416f9efda389c15ee10659136 Mon Sep 17 00:00:00 2001 From: ache Date: Mon, 11 Dec 2023 03:27:25 +0100 Subject: Support for quick yank info --- rc.conf | 9 ++++++--- 1 file 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 -- cgit v1.2.3