]> gitweb.fluxo.info Git - rhatto/dotfiles/ranger.git/commitdiff
Adds map to dereferenced copy
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 23 Jun 2018 00:01:07 +0000 (21:01 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 23 Jun 2018 00:01:07 +0000 (21:01 -0300)
config.dot/ranger/rc.conf.link

index ab83a3f2f0fa75588195033f83c94495d934504c..d61fd2d105d67037411d03057cdcef3b037aad7c 100644 (file)
@@ -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