about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lepus.uberspace.de>2016-02-11 21:58:15 +0100
committerhut <hut@lepus.uberspace.de>2016-02-11 21:58:15 +0100
commit83afe266fb34b04263c8616d26d6eb7878cf6c5f (patch)
treed0005640ad5ccb3c9cdd6867882c92b617db4fe0
parent24f64474d5184cda9ad752a69030eab691cdd5a9 (diff)
downloadranger-83afe266fb34b04263c8616d26d6eb7878cf6c5f.tar.gz
config.commands: removed defunct "less %f" shortcut
this used to do a "!-p cat %f" when you only typed "!-p".  Since this is
not documented anywhere and currently defunct, I chose to remove the
code entirely.
-rwxr-xr-xranger/config/commands.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/ranger/config/commands.py b/ranger/config/commands.py
index 66cb2cc8..f734d64a 100755
--- a/ranger/config/commands.py
+++ b/ranger/config/commands.py
@@ -209,8 +209,6 @@ class shell(Command):
             flags = ''
             command = self.rest(1)
 
-        if not command and 'p' in flags:
-            command = 'cat %f'
         if command:
             self.fm.execute_command(command, flags=flags)