summary refs log tree commit diff stats
path: root/doc
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2013-03-17 16:57:52 +0100
committerhut <hut@lavabit.com>2013-03-17 16:57:52 +0100
commite7930f43811773deffdbf8bb81fae273f0c1dafc (patch)
treedbae6e67aa7c6fd22e37b86d0277000c0f30efdd /doc
parent1f5a29d42745f0ae7c37a96339e8df0185d5f3dd (diff)
downloadranger-e7930f43811773deffdbf8bb81fae273f0c1dafc.tar.gz
update examples (s/ranger.fsobject/ranger.container/)
Diffstat (limited to 'doc')
-rw-r--r--doc/examples/plugin_file_filter.py8
-rw-r--r--doc/examples/plugin_new_sorting_method.py2
2 files changed, 5 insertions, 5 deletions
diff --git a/doc/examples/plugin_file_filter.py b/doc/examples/plugin_file_filter.py
index 965fa2e8..bad5a368 100644
--- a/doc/examples/plugin_file_filter.py
+++ b/doc/examples/plugin_file_filter.py
@@ -4,8 +4,8 @@
 # root directory.
 
 # Save the original filter function
-import ranger.fsobject.directory
-old_accept_file = ranger.fsobject.directory.accept_file
+import ranger.container.directory
+old_accept_file = ranger.container.directory.accept_file
 
 # Define a new one
 def custom_accept_file(fname, directory, hidden_filter, name_filter):
@@ -15,5 +15,5 @@ def custom_accept_file(fname, directory, hidden_filter, name_filter):
                return old_accept_file(fname, directory, hidden_filter, name_filter)
 
 # Overwrite the old function
-import ranger.fsobject.directory
-ranger.fsobject.directory.accept_file = custom_accept_file
+import ranger.container.directory
+ranger.container.directory.accept_file = custom_accept_file
diff --git a/doc/examples/plugin_new_sorting_method.py b/doc/examples/plugin_new_sorting_method.py
index 02abbc47..6b41b0e1 100644
--- a/doc/examples/plugin_new_sorting_method.py
+++ b/doc/examples/plugin_new_sorting_method.py
@@ -3,7 +3,7 @@
 # This plugin adds the sorting algorithm called 'random'.  To enable it, type
 # ":set sort=random" or create a key binding with ":map oz set sort=random"
 
-from ranger.fsobject.directory import Directory
+from ranger.container.directory import Directory
 from random import random
 Directory.sort_dict['random'] = lambda path: random()
 
='/akkartik/mu/commit/cpp/035call?h=main&id=f1e953d0cf7f5669a55b1337a87e646c1262d139'>f1e953d0 ^
1ead3562 ^
bc643692 ^

f1e953d0 ^
d7494165 ^

acc4792d ^

d7494165 ^
acc4792d ^


f1e953d0 ^
ec926027 ^




363be37f ^
b24eb476 ^
ca01193d ^
363be37f ^
50eab110 ^



1fa53058 ^


ec926027 ^
31401373 ^
ec926027 ^



ca01193d ^
363be37f ^
69e14325 ^
5eb49929 ^
e2240eb4 ^

363be37f ^
77cdc6d0 ^

dd2e01e4 ^
77cdc6d0 ^

31401373 ^
d72f3799 ^
0b0cfb6f ^
7284d503 ^
67573caf ^




7284d503 ^

b24eb476 ^

31401373 ^
67573caf ^
ec926027 ^
7c8493b3 ^

31401373 ^
795f5244 ^
ec926027 ^
dcfca05e ^

31401373 ^
1fa53058 ^



795f5244 ^
dcfca05e ^
f89378d5 ^
2142ccfc ^

f3760b0f ^
8d72e565 ^
2142ccfc ^

f1a6f323 ^
9cf71627 ^
5810092d ^
513bfed8 ^




2142ccfc ^
77cdc6d0 ^

dd2e01e4 ^
77cdc6d0 ^

012d2ee1 ^
af085cf6 ^




3eeea0a2 ^

9cf71627 ^
5f98a10c ^

1ead3562 ^
2cb36cd0 ^

5f98a10c ^
2cb36cd0 ^

5f98a10c ^
1ead3562 ^
2cb36cd0 ^

5f98a10c ^
2cb36cd0 ^
7284d503 ^
64cf0a59 ^
69e14325 ^


df8bb4c3 ^
f6d47435 ^
95b2a140 ^
5eb49929 ^
31401373 ^
795f5244 ^
5eb49929 ^

f1e953d0 ^
ec926027 ^

ac0e9db5 ^
2e8c5d39 ^
77cdc6d0 ^
dd2e01e4 ^
77cdc6d0 ^


31401373 ^
d8c6265d ^
9fdda88b ^
5f98a10c ^
8eff7919 ^
f6d47435 ^
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168