From f01238dc2a9ee6675a977ee0c1c5253ad489f3fa Mon Sep 17 00:00:00 2001 From: hut Date: Fri, 28 May 2010 11:32:34 +0200 Subject: defaults.apps: shortened code of last commit --- ranger/defaults/apps.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ranger/defaults/apps.py b/ranger/defaults/apps.py index 8c766419..1f2f751c 100644 --- a/ranger/defaults/apps.py +++ b/ranger/defaults/apps.py @@ -140,8 +140,7 @@ 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 - directory = self.fm.env.get_directory(c.file.dirname) - images = (f.basename for f in directory.files if f.image) + images = (f.basename for f in self.fm.env.cwd.files if f.image) return tup('feh', '--start-at', c.file.basename, *images) return tup('feh', *c) -- cgit 1.4.1-2-gfad0 ef='/gbmor/clinte/?h=v2.0.0'>summary refs log tree commit diff stats
path: root/src/main.rs
blob: 6c384318f825aa7642fe2608f50af593934ecebf (plain) (blame)
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