From 62cd83bace8e77cd1ff7028da6cf65d0d1defa27 Mon Sep 17 00:00:00 2001
From: hut
#### start of the ~/.ranger/apps.py example
-from ranger.defaults.apps import CustomApplications as DefaultApps
-from ranger.api.apps import *
-
-class CustomApplications(DefaultApps):
- def app_kaffeine(self, c):
- return tup('kaffeine', *c)
+ from ranger.defaults.apps import CustomApplications as DefaultApps
+ from ranger.api.apps import *
+
+ class CustomApplications(DefaultApps):
+ def app_kaffeine(self, c):
+ return tup('kaffeine', *c)
- def app_feh_fullscreen_by_default(self, c):
- return tup('feh', '-F', *c)
+ def app_feh_fullscreen_by_default(self, c):
+ return tup('feh', '-F', *c)
- def app_default(self, c):
- if c.file.video or c.file.audio:
- return app_kaffeine(c)
+ def app_default(self, c):
+ if c.file.video or c.file.audio:
+ return app_kaffeine(c)
- if c.file.image and c.mode == 0:
- return app_feh_fullscreen_by_default(c)
+ if c.file.image and c.mode == 0:
+ return app_feh_fullscreen_by_default(c)
- return DefaultApps.app_default(self, c)
+ return DefaultApps.app_default(self, c)
#### end of the example
- | INTERPRETED_LANGUAGES = <_sre.SRE_Pattern object at 0xf6f2d0> + | INTERPRETED_LANGUAGES = <_sre.SRE_Pattern object at 0x1274ff0> PIPE = -1 |