From eb3795d352893ce760bfa31383cf98ba1ad9d113 Mon Sep 17 00:00:00 2001 From: hut Date: Mon, 12 Apr 2010 12:15:22 +0200 Subject: Grey out copied/cut files. --- ranger/core/actions.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ranger/core/actions.py') 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 -- cgit 1.4.1-2-gfad0