diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2018-06-22 21:01:07 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-06-22 21:01:07 -0300 |
commit | b4ece80ac799bfac80749b066d22e3b858d485fc (patch) | |
tree | f7452615ef418b992aa08cb469ac3c209b084df2 | |
parent | e5566ba0691223b6d48c92a68a843a5710a87ac8 (diff) | |
download | ranger-b4ece80ac799bfac80749b066d22e3b858d485fc.tar.gz ranger-b4ece80ac799bfac80749b066d22e3b858d485fc.tar.bz2 |
Adds map to dereferenced copy
-rw-r--r-- | config.dot/ranger/rc.conf.link | 4 |
1 files changed, 4 insertions, 0 deletions
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 |