From b4ece80ac799bfac80749b066d22e3b858d485fc Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 22 Jun 2018 21:01:07 -0300 Subject: Adds map to dereferenced copy --- config.dot/ranger/rc.conf.link | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config.dot/ranger/rc.conf.link b/config.dot/ranger/rc.conf.link index ab83a3f..d61fd2d 100644 --- a/config.dot/ranger/rc.conf.link +++ b/config.dot/ranger/rc.conf.link @@ -21,6 +21,10 @@ set preview_script ~/.config/ranger/scope.sh # Keybindings # https://github.com/ranger/ranger/wiki/Keybindings +# http://dquinton.github.io/debian-install/config/ranger.html map F console scout -ftsea%space map cw eval fm.execute_console("bulkrename") if fm.thisdir.marked_items else fm.open_console("rename ") map go eval from ranger.ext.spawn import spawn; fm.select_file(spawn("grep ^music_directory /etc/mpd.conf | grep -oP '(?<=\").*(?=\")'").strip() + "/" + spawn("mpc -f %file% | head -1")) + +# Copy with dereferencing +map pl shell -f echo -n %c | xargs -n 1 -I {} cp -Lr {} %d -- cgit v1.2.3