diff options
-rw-r--r-- | ranger/defaults/apps.py | 4 |
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') |