summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-11-01 14:25:58 +0100
committerhut <hut@lavabit.com>2010-11-01 14:37:22 +0100
commitdad0644f8819521c26739c185254f6edb36746ce (patch)
tree72bd22acec5f054c9eb93a269b53c3e867a02b82 /ranger
parent1c683951ef9c20a835ee828ee56f3f2cc30bb437 (diff)
downloadranger-dad0644f8819521c26739c185254f6edb36746ce.tar.gz
widgets.browsercolumn: Run files with right mouse click
Diffstat (limited to 'ranger')
-rw-r--r--ranger/gui/widgets/browsercolumn.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/ranger/gui/widgets/browsercolumn.py b/ranger/gui/widgets/browsercolumn.py
index eb898e2a..5422b960 100644
--- a/ranger/gui/widgets/browsercolumn.py
+++ b/ranger/gui/widgets/browsercolumn.py
@@ -82,7 +82,11 @@ class BrowserColumn(Pager):
 				elif event.pressed(3):
 					try:
 						clicked_file = self.target.files[index]
-						self.fm.enter_dir(clicked_file.path)
+						if clicked_file.is_directory:
+							self.fm.enter_dir(clicked_file.path)
+						elif self.level == 0:
+							self.fm.env.cwd.move_to_obj(clicked_file)
+							self.fm.execute_file(clicked_file)
 					except:
 						pass
 
kkartik.com> 2016-08-27 20:49:03 -0700 committer Kartik K. Agaram <vc@akkartik.com> 2016-08-27 20:49:03 -0700 3266' href='/akkartik/mu/commit/html/088file.mu.html?h=main&id=cd9bb850caeca88747a25436fc65c67c6d5cd89a'>cd9bb850 ^
d990e8f0 ^


f344b250 ^
8e7b4429 ^


0ca56ed8 ^

d990e8f0 ^

f344b250 ^
d990e8f0 ^

8e7b4429 ^

cd9bb850 ^
f344b250 ^
8e7b4429 ^
f344b250 ^
8e7b4429 ^



f344b250 ^


8e7b4429 ^
f344b250 ^
8e7b4429 ^

cd9bb850 ^
0ca56ed8 ^
f344b250 ^
8e7b4429 ^
f344b250 ^
0ca56ed8 ^
8e7b4429 ^



d990e8f0 ^

f344b250 ^
d990e8f0 ^


f344b250 ^
cd9bb850 ^
d990e8f0 ^


d990e8f0 ^
cd9bb850 ^
513ba330 ^

f344b250 ^
8e7b4429 ^

f344b250 ^

8e7b4429 ^
f344b250 ^
8e7b4429 ^
f344b250 ^
8e7b4429 ^






f344b250 ^
513ba330 ^

f344b250 ^
cd9bb850 ^


f344b250 ^
cd9bb850 ^






513ba330 ^

f344b250 ^
513ba330 ^


f344b250 ^
513ba330 ^



cd9bb850 ^


f344b250 ^
cd9bb850 ^


f344b250 ^
cd9bb850 ^
f344b250 ^
cd9bb850 ^



0ca56ed8 ^
cd9bb850 ^

0ca56ed8 ^
f344b250 ^
cd9bb850 ^
f344b250 ^

cd9bb850 ^
f344b250 ^
cd9bb850 ^


f344b250 ^
cd9bb850 ^




f344b250 ^

cd9bb850 ^

f344b250 ^
cd9bb850 ^
f344b250 ^
cd9bb850 ^





d990e8f0 ^




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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183