summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-05-28 11:30:13 +0200
committerhut <hut@lavabit.com>2010-05-28 11:30:13 +0200
commitdb41bc89ef1e0bb737fd24c36898c2c1fabb7cc0 (patch)
tree798e5f953864091eb14870b42e8687d1d9381b5d
parentd383965f431ee738a6db2da35d4092dfb108b739 (diff)
downloadranger-db41bc89ef1e0bb737fd24c36898c2c1fabb7cc0.tar.gz
defaults.apps: retain order of files in app_feh mode 11
-rw-r--r--ranger/defaults/apps.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ranger/defaults/apps.py b/ranger/defaults/apps.py
index cd745ff8..8c766419 100644
--- a/ranger/defaults/apps.py
+++ b/ranger/defaults/apps.py
@@ -140,7 +140,9 @@ class CustomApplications(Applications):
 		if c.mode in arg: # mode 1, 2 and 3 will set the image as the background
 			return tup('feh', arg[c.mode], c.file.path)
 		if c.mode is 11 and len(c.files) is 1: # view all files in the cwd
-			return tup('feh', self.fm.env.cwd.path, '--start-at', *c)
+			directory = self.fm.env.get_directory(c.file.dirname)
+			images = (f.basename for f in directory.files if f.image)
+			return tup('feh', '--start-at', c.file.basename, *images)
 		return tup('feh', *c)
 
 	@depends_on('aunpack')
d5 ^
30b5f112 ^
6dabbbd5 ^









30b5f112 ^










2f82f50a ^
86c1c388 ^
1a3dc91e ^
30b5f112 ^
fbc30231 ^

















cd2458c0 ^

0ae975c2 ^

b21edfaa ^

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