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'):