diff options
author | hut <hut@lavabit.com> | 2010-04-12 12:15:22 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-04-12 12:19:20 +0200 |
commit | eb3795d352893ce760bfa31383cf98ba1ad9d113 (patch) | |
tree | 1b17f5e7d5c730c7da2f2f75e21c81a65eb8ff0d /ranger/core/actions.py | |
parent | c0914664cf35ea0f06cb4c24f983d62096594d0c (diff) | |
download | ranger-eb3795d352893ce760bfa31383cf98ba1ad9d113.tar.gz |
Grey out copied/cut files.
Diffstat (limited to 'ranger/core/actions.py')
-rw-r--r-- | ranger/core/actions.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py index 0f8b74e5..c0599b46 100644 --- a/ranger/core/actions.py +++ b/ranger/core/actions.py @@ -531,16 +531,23 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware): # -- File System Operations # -------------------------- + def uncut(self): + self.env.copy = set() + self.env.cut = False + self.ui.browser.main_column.request_redraw() + def copy(self): """Copy the selected items""" selected = self.env.get_selection() self.env.copy = set(f for f in selected if f in self.env.cwd.files) self.env.cut = False + self.ui.browser.main_column.request_redraw() def cut(self): self.copy() self.env.cut = True + self.ui.browser.main_column.request_redraw() def paste_symlink(self): from os import symlink, getcwd |