From 0fcbf6dcc044709ec240edfcb5a72147b7bbb4c4 Mon Sep 17 00:00:00 2001 From: hut Date: Fri, 9 Apr 2010 04:07:21 +0200 Subject: defaults.apps: edit xml files with editor --- ranger/defaults/apps.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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'): -- cgit 1.4.1-2-gfad0