about summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorRodrigo Stuchi <rod.stuchi@gmail.com>2018-05-15 18:53:57 -0300
committerRodrigo Stuchi <rod.stuchi@gmail.com>2018-05-15 19:01:19 -0300
commit8a8ad05bb64e595fe8ac0196e850445ea704f269 (patch)
treed999ee05e79e08f237d75080d15c5d18e0006856 /ranger
parentfe1989b52c871c23327bfd6296330bebabc47ad1 (diff)
downloadranger-8a8ad05bb64e595fe8ac0196e850445ea704f269.tar.gz
Fixed yank name without extension in multiple files
changed map `yw` to `y.` ref.: #1174
Diffstat (limited to 'ranger')
-rwxr-xr-xranger/config/commands.py3
-rw-r--r--ranger/config/rc.conf2
2 files changed, 3 insertions, 2 deletions
diff --git a/ranger/config/commands.py b/ranger/config/commands.py
index a2492369..bf03069f 100755
--- a/ranger/config/commands.py
+++ b/ranger/config/commands.py
@@ -1762,7 +1762,8 @@ class yank(Command):
 
         mode = self.modes[self.arg(1)]
         if mode == "splitext":
-            selection = [os.path.splitext(self.get_selection_attr('basename')[0])[0]]
+            selection = [os.path.splitext(item)[0] for item in
+                         self.get_selection_attr('basename')]
         else:
             selection = self.get_selection_attr(mode)
 
diff --git a/ranger/config/rc.conf b/ranger/config/rc.conf
index 3725c400..6b0802bb 100644
--- a/ranger/config/rc.conf
+++ b/ranger/config/rc.conf
@@ -413,7 +413,7 @@ map dU shell -p du --max-depth=1 -h --apparent-size | sort -rh
 map yp yank path
 map yd yank dir
 map yn yank name
-map yw yank name_without_extension
+map y. yank name_without_extension
 
 # Filesystem Operations
 map =  chmod