summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-04-09 04:07:21 +0200
committerhut <hut@lavabit.com>2010-04-09 04:08:19 +0200
commit035a39a8a468ba842fd69a2370aba8ac3c1f3d39 (patch)
tree77ac09769c03d73cc68cd68c37de20218fdfe617
parent5249464c9969a878ccb5d5b628fdd23ec1ef53e8 (diff)
downloadranger-035a39a8a468ba842fd69a2370aba8ac3c1f3d39.tar.gz
defaults.apps: edit xml files with editor
-rw-r--r--ranger/defaults/apps.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ranger/defaults/apps.py b/ranger/defaults/apps.py
index 9543badb..b3500c0d 100644
--- a/ranger/defaults/apps.py
+++ b/ranger/defaults/apps.py
@@ -58,9 +58,11 @@ class CustomApplications(Applications):
 		f = c.file
 
 		if f.extension is not None:
-			if f.extension in ('pdf'):
+			if f.extension in ('pdf' ):
 				c.flags += 'd'
 				return self.either(c, 'evince', 'zathura', 'apvlv')
+			if f.extension in ('xml', ):
+				return self.app_editor(c)
 			if f.extension in ('html', 'htm', 'xhtml', 'swf'):
 				return self.either(c, 'firefox', 'opera', 'elinks')
 			if f.extension in ('swc', 'smc'):
revision' href='/punk/doc/blame/tools/index.html?id=e77894b32b609572f46e30d25372166016b500d4'>^
2cda042 ^

43daea2 ^



83e2e33 ^

9741df0 ^
2cda042 ^






83e2e33 ^




2cda042 ^






83e2e33 ^

2cda042 ^


83e2e33 ^



2cda042 ^

43daea2 ^

94e429f ^

26f3d58 ^
94e429f ^

26f3d58 ^

94e429f ^
2f30196 ^
83e2e33 ^
2f30196 ^

83e2e33 ^
2f30196 ^
83e2e33 ^

26f3d58 ^
94e429f ^
8a7c0b6 ^
7d92798 ^
8a7c0b6 ^
7d92798 ^







8a7c0b6 ^
94e429f ^

26f3d58 ^
94e429f ^
94e429f ^
50f9d4a ^
2e952e8 ^

7d92798 ^



2e952e8 ^
26f3d58 ^
94e429f ^

2e952e8 ^
94e429f ^



26f3d58 ^
94e429f ^
83e2e33 ^
94e429f ^

2e952e8 ^







94e429f ^


2f30196 ^
3d29ecb ^

94e429f ^

2946387 ^









94e429f ^

2f30196 ^



2946387 ^
d1e992f ^
94e429f ^



2f30196 ^






94e429f ^

94e429f ^
26f3d58 ^
2cda042 ^

26f3d58 ^
214aa23 ^

183caad ^
26f3d58 ^

94e429f ^

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