From d0414ecd2dde3a154e8ef71188de574916a92a1c Mon Sep 17 00:00:00 2001 From: hut Date: Wed, 10 Dec 2014 01:56:13 +0100 Subject: api.commands: Added attribute Command.quickly_executed This is set to True if the command was executed by cmd.quick() returning True on a line change. --- ranger/api/commands.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ranger/api/commands.py') diff --git a/ranger/api/commands.py b/ranger/api/commands.py index 7f5fcf36..e00fe385 100644 --- a/ranger/api/commands.py +++ b/ranger/api/commands.py @@ -92,6 +92,7 @@ class Command(FileManagerAware): self.line = line self.args = line.split() self.quantifier = quantifier + self.quickly_executed = False try: self.firstpart = line[:line.rindex(' ') + 1] except ValueError: @@ -407,6 +408,7 @@ class AliasCommand(Command): def _make_cmd(self): cmd_class = self.fm.commands.get_command(self._line.split()[0]) cmd = cmd_class(self._line + ' ' + self.rest(1)) + cmd.quickly_executed = self.quickly_executed cmd.quantifier = self.quantifier cmd.escape_macros_for_shell = self.escape_macros_for_shell cmd.resolve_macros = self.resolve_macros -- cgit 1.4.1-2-gfad0