about summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorM Rawash <mrawash@gmail.com>2011-12-19 08:47:05 +0200
committerM Rawash <mrawash@gmail.com>2011-12-19 09:29:29 +0200
commita87bf3e07a77ca167d33435abefdf22b10a13656 (patch)
tree75eabca7f3a6a32fc59dddef3c0289d4de2ea2cb /ranger
parentfc17126a6a0ab436c757c545fa55e87ccd89635c (diff)
downloadranger-a87bf3e07a77ca167d33435abefdf22b10a13656.tar.gz
core/runner.py: removed the 'a' flag from ALLOWED_FLAGS
Diffstat (limited to 'ranger')
-rw-r--r--ranger/core/runner.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ranger/core/runner.py b/ranger/core/runner.py
index baec1595..ba6d82a8 100644
--- a/ranger/core/runner.py
+++ b/ranger/core/runner.py
@@ -41,7 +41,7 @@ from subprocess import Popen, PIPE
 from ranger.ext.get_executables import get_executables
 
 
-ALLOWED_FLAGS = 'sdpwcartSDPWCART'
+ALLOWED_FLAGS = 'sdpwcrtSDPWCRT'
 
 
 def press_enter():
@@ -208,9 +208,9 @@ class Runner(object):
 			if term not in get_executables():
 				term = 'xterm'
 			if isinstance(action, str):
-				action = term+' -e '+action
+				action = term + ' -e ' + action
 			else:
-				action = [term,'-e']+action
+				action = [term, '-e'] + action
 			toggle_ui = False
 			context.wait = False
 
teger */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
# Compatible with ranger 1.6.0 through ranger 1.7.*
#
# This plugin serves as an example for adding key bindings through a plugin.
# It could replace the ten lines in the rc.conf that create the key bindings
# for the "chmod" command.

from __future__ import (absolute_import, division, print_function)

import ranger.api


HOOK_INIT_OLD = ranger.api.hook_init


def hook_init(fm):
    HOOK_INIT_OLD(fm)

    # Generate key bindings for the chmod command
    command = "map {0}{1}{2} shell -d chmod {1}{0}{2} %s"
    for mode in list('ugoa') + ['']:
        for perm in "rwxXst":
            fm.execute_console(command.format('-', mode, perm))
            fm.execute_console(command.format('+', mode, perm))


ranger.api.hook_init = hook_init