summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorM Rawash <mrawash@gmail.com>2011-12-07 00:39:41 +0200
committerM Rawash <mrawash@gmail.com>2011-12-07 00:41:05 +0200
commitf206876a66deb57eb27058c35e69c411e5171f01 (patch)
tree12a958b848e26ace769bcea4abd6ff2ee3282fd1 /ranger
parent4038295758a9786c7f88405f330d2264b912b059 (diff)
downloadranger-f206876a66deb57eb27058c35e69c411e5171f01.tar.gz
core/runner.py: got rid of the 'a' flag
Diffstat (limited to 'ranger')
-rw-r--r--ranger/core/runner.py11
1 files changed, 2 insertions, 9 deletions
diff --git a/ranger/core/runner.py b/ranger/core/runner.py
index cf7b7b41..7d433652 100644
--- a/ranger/core/runner.py
+++ b/ranger/core/runner.py
@@ -30,7 +30,6 @@ d: detach the process.
 p: redirect output to the pager
 c: run only the current file (not handled here)
 w: wait for enter-press afterwards
-a: use alternative application
 r: run application with root privilege (requires sudo)
 t: run application in a new terminal window
 (An uppercase key negates the respective lower case flag)
@@ -123,7 +122,7 @@ class Runner(object):
 
 	def __call__(self, action=None, try_app_first=False,
 			app='default', files=None, mode=0,
-			flags='', alt=None, wait=True, **popen_kws):
+			flags='', wait=True, **popen_kws):
 		"""
 		Run the application in the way specified by the options.
 
@@ -138,7 +137,7 @@ class Runner(object):
 		# an Application object.
 
 		context = Context(app=app, files=files, mode=mode, fm=self.fm,
-				flags=flags, alt=alt, wait=wait, popen_kws=popen_kws,
+				flags=flags, wait=wait, popen_kws=popen_kws,
 				file=files and files[0] or None)
 
 		if self.apps:
@@ -192,12 +191,6 @@ class Runner(object):
 		if 'w' in context.flags:
 			if not pipe_output and context.wait: # <-- sanity check
 				wait_for_enter = True
-		if 'a' in context.flags and context.alt:
-			if isinstance(action, str):
-				import re
-				action = re.sub('\w+', context.alt, action) 
-			else:
-				action[0] = context.alt
 		if 'r' in context.flags:
 			if 'sudo' not in get_executables():
 				return self._log("Can not run with 'r' flag, sudo is not installed!")
dated' href='/akspecs/ranger/commit/Makefile?h=v1.9.3&id=3a1e1f28fa847df5021b37d4c81eb4dfa01f5a8e'>3a1e1f28 ^
f473be92 ^
3a1e1f28 ^

2c5ea01d ^
5fca2a0b ^
b0a216f5 ^
2c5ea01d ^
b0a216f5 ^



3a1e1f28 ^
b0a216f5 ^
e7758eba ^
b0a216f5 ^

ececd03e ^














2c5ea01d ^
582f3519 ^
b06433bc ^
582f3519 ^

94c5d83e ^
dee6cfa6 ^
e9e4b4ff ^
b0a216f5 ^
76612b05 ^
ececd03e ^
b0a216f5 ^
e9e4b4ff ^





612b8b8b ^
e9e4b4ff ^
52403c53 ^
ad51cca4 ^
08e43b29 ^


ad51cca4 ^






b3d031a9 ^
c5f776ed ^
b3d031a9 ^

bc2c5619 ^
c5f776ed ^

b3d031a9 ^

c5f776ed ^

c216901a ^
f473be92 ^
5fca2a0b ^
9cf43c17 ^
5fca2a0b ^
c5f776ed ^

a052151f ^
c5f776ed ^

f2c8a7ff ^




185c022e ^
5fca2a0b ^
c7720fff ^


a6836d5d ^

c7720fff ^
8d21b83c ^


e9e4b4ff ^
ececd03e ^
e9e4b4ff ^
0c2c782d ^
636d9393 ^
b0a216f5 ^
c6afc196 ^

c0d63e78 ^


ececd03e ^
f2c8a7ff ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137