diff options
Diffstat (limited to 'ranger/core/actions.py')
-rw-r--r-- | ranger/core/actions.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py index bd9be223..976d2f3d 100644 --- a/ranger/core/actions.py +++ b/ranger/core/actions.py @@ -1306,10 +1306,13 @@ class Actions(FileManagerAware, SettingsAware): self.loader.add(loadable, append=append) self.do_cut = False - def delete(self): + def delete(self, narg=None): # XXX: warn when deleting mount points/unseen marked files? self.notify("Deleting!") - selected = self.thistab.get_selection() + if narg is None: + selected = self.thistab.get_selection() + else: + selected = [File(os.path.expanduser(f)) for f in narg] self.copy_buffer -= set(selected) if selected: for f in selected: |