summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lepus.uberspace.de>2014-10-26 05:45:18 +0100
committerhut <hut@lepus.uberspace.de>2014-10-26 05:45:18 +0100
commit9cee6325c3013fe100d8d7209aad419d7825e0b7 (patch)
treea834687618f8b2d778c7a7d3c2b700b2a7c5114a
parentfc138baee9118076e8181096246a484f3611456c (diff)
downloadranger-9cee6325c3013fe100d8d7209aad419d7825e0b7.tar.gz
core.actions: fixed _MacroTemplate.idpattern
Thanks to trupanka for pointing out the problem at
https://github.com/hut/ranger/issues/175
-rw-r--r--ranger/core/actions.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index f6c41447..92d626c0 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -33,6 +33,7 @@ MACRO_FAIL = "<\x01\x01MACRO_HAS_NO_VALUE\x01\01>"
 class _MacroTemplate(string.Template):
     """A template for substituting macros in commands"""
     delimiter = ranger.MACRO_DELIMITER
+    idpattern = r"[_a-z0-9]*"
 
 class Actions(FileManagerAware, EnvironmentAware, SettingsAware):
     # --------------------------
abit.com> 2009-12-24 14:34:36 +0100 committer hut <hut@lavabit.com> 2009-12-24 14:34:36 +0100 implemented sorting' href='/akspecs/ranger/commit/TODO?h=v1.5.1&id=e92fe17a449cad78c79a905fd53ec73f8a41051c'>e92fe17a ^
b5493fe4 ^

ef0ee843 ^
0b8a9d79 ^
a6791aee ^
23236d0c ^
08f21ae5 ^
4b826595 ^
757e1f55 ^
277ecc9e ^
9983328c ^
752378e0 ^
ee4ad7e5 ^

b13518af ^
509afd70 ^
fc486c60 ^


4be8b401 ^



d955e3f0 ^
75013dc7 ^
67bb838c ^
a808a661 ^
bba8d293 ^
2a64495f ^
5e449699 ^
fc486c60 ^

6f43de0a ^




fca1fc4f ^
f70ee6b2 ^
0db4c9b2 ^
b2d63ef5 ^
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