summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2011-10-08 19:34:02 +0200
committerhut <hut@lavabit.com>2011-10-08 19:34:02 +0200
commit20a31620945503dedfd0a3f6a93a4389e7cfffcc (patch)
tree03f0cdf9375a516bf0f92f691171bd16b899328e /ranger
parent027ded1507f17b3b8d732a1806d8fccec1aaf4ff (diff)
downloadranger-20a31620945503dedfd0a3f6a93a4389e7cfffcc.tar.gz
defaults/apps: Removed example code, its now in config_examples/
Diffstat (limited to 'ranger')
-rw-r--r--ranger/defaults/apps.py28
1 files changed, 0 insertions, 28 deletions
diff --git a/ranger/defaults/apps.py b/ranger/defaults/apps.py
index 2579f882..4f90c807 100644
--- a/ranger/defaults/apps.py
+++ b/ranger/defaults/apps.py
@@ -16,34 +16,6 @@
 """
 This is the default ranger configuration file for filetype detection
 and application handling.
-
-You can place this file in your ~/.config/ranger/ directory and it will be used
-instead of this one.  Though, to minimize your effort when upgrading ranger,
-you may want to subclass CustomApplications rather than making a full copy.
-            
-This example modifies the behaviour of "feh" and adds a custom media player:
-
-#### start of the ~/.config/ranger/apps.py example
-	from ranger.defaults.apps import CustomApplications as DefaultApps
-	from ranger.api.apps import *
-			
-	class CustomApplications(DefaultApps):
-		def app_kaffeine(self, context):
-			return 'kaffeine', context
-
-		def app_feh_fullscreen_by_default(self, context):
-			return 'feh', '-F', context
-
-		def app_default(self, context):
-			f = context.file #shortcut
-			if f.video or f.audio:
-				return self.app_kaffeine(context)
-
-			if f.image and context.mode == 0:
-				return self.app_feh_fullscreen_by_default(context)
-
-			return DefaultApps.app_default(self, context)
-#### end of the example
 """
 
 import ranger