diff options
Diffstat (limited to 'ranger/core/actions.py')
-rw-r--r-- | ranger/core/actions.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py index 20b910da..0fd60b9a 100644 --- a/ranger/core/actions.py +++ b/ranger/core/actions.py @@ -249,6 +249,12 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware): # ranger can act as a file chooser when running with --choosefile=... if ranger.arg.choosefile: open(ranger.arg.choosefile, 'w').write(self.fm.env.cf.path) + + if ranger.arg.choosefiles: + open(ranger.arg.choosefiles, 'w').write("".join( + f.path + "\n" for f in self.fm.env.get_selection())) + + if ranger.arg.choosefile or ranger.arg.choosefiles: raise SystemExit() if isinstance(files, set): |