summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lepus.uberspace.de>2015-11-16 23:10:09 +0100
committerhut <hut@lepus.uberspace.de>2015-11-16 23:10:43 +0100
commit55567184364d22d7c43d7413c62ef73130d940e9 (patch)
tree63899327a74ea86d57345e6a2b731308003b3cde /ranger
parent90d6ad8b581e64734b5aaea347d6f99501029fa4 (diff)
downloadranger-55567184364d22d7c43d7413c62ef73130d940e9.tar.gz
Revert "config.commands: don't resolve macros in :rename/:touch"
This reverts commit dfc0c61ad371d73a7fce842f8196fb2cef081f1d.

See #417:

> macros were explicitly disabled for :rename in dfc0c61.
>
> I'm not sure anymore why, but I think it was so you can use the A key on
> files with a %s in the name without things breaking. I'm going to revert
> the patch and write a better workaround.
Diffstat (limited to 'ranger')
-rw-r--r--ranger/config/commands.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/ranger/config/commands.py b/ranger/config/commands.py
index 0dc22147..13b6a50c 100644
--- a/ranger/config/commands.py
+++ b/ranger/config/commands.py
@@ -661,8 +661,6 @@ class touch(Command):
     Creates a file with the name <fname>.
     """
 
-    resolve_macros = False
-
     def execute(self):
         from os.path import join, expanduser, lexists
 
@@ -738,8 +736,6 @@ class rename(Command):
     Changes the name of the currently highlighted file to <newname>
     """
 
-    resolve_macros = False
-
     def execute(self):
         from ranger.container.file import File
         from os import access