aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.dot/ranger/rc.conf.link4
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