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
committer hut <hut@lavabit.com> 2009-11-16 16:41:53 +0100 Initial commit' href='/akspecs/ranger/commit/README?h=v1.9.0b2&id=712aa449042e5f9cc66277eeb68fa18b5a0c7d57'>712aa449
240394a4 ^

240394a4 ^
7dc8fef8 ^
9e89f023 ^
36e4e71e ^
20ab9343 ^

20ab9343 ^





4ea0f69a ^

240394a4 ^
7dc8fef8 ^
36e4e71e ^

4a383291 ^
78a7d762 ^
e952d6cb ^
78a7d762 ^
e952d6cb ^
4ea0f69a ^

7838675f ^

07069888 ^

07069888 ^
7838675f ^

1891697f ^
755e7df1 ^
a3d5f44b ^
7838675f ^
7dc8fef8 ^
500cf259 ^


7dc8fef8 ^



240394a4 ^



240394a4 ^
7dc8fef8 ^
240394a4 ^




7dc8fef8 ^
240394a4 ^



e5fb3d74 ^
240394a4 ^

240394a4 ^
7dc8fef8 ^



7b33b517 ^



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