From ccb56d06a555efee9490f60029e50d9c060ec176 Mon Sep 17 00:00:00 2001 From: hut Date: Wed, 28 Apr 2010 14:49:26 +0200 Subject: widgets.console: added macro %d --- ranger/gui/widgets/console.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ranger/gui/widgets/console.py b/ranger/gui/widgets/console.py index dbdc8b53..fa9e438e 100644 --- a/ranger/gui/widgets/console.py +++ b/ranger/gui/widgets/console.py @@ -469,6 +469,11 @@ class OpenConsole(ConsoleWithTab): for fl in self.fm.env.cwd.files if fl.realpath in self.fm.tags) + if self.fm.env.cwd: + macros['d'] = shell_quote(self.fm.env.cwd.path) + else: + macros['d'] = '.' + return _CustomTemplate(command).safe_substitute(macros) def _parse(self): -- cgit 1.4.1-2-gfad0 e7122e08'>this commit mirror of ~rjarry's aerc fork - a pretty good email clientakspecs <akspecs@tilde.institute>
summary refs log tree commit diff stats
path: root/doc/aerc.1.scd
blob: e7d3c59f55e9470ef20240691370ccb320c0b396 (plain) (blame)
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