diff options
-rw-r--r-- | ranger/gui/widgets/console.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ranger/gui/widgets/console.py b/ranger/gui/widgets/console.py index f2c15426..1512b763 100644 --- a/ranger/gui/widgets/console.py +++ b/ranger/gui/widgets/console.py @@ -7,6 +7,7 @@ from collections import deque DEFAULT_HISTORY = 0 SEARCH_HISTORY = 1 +QUICKOPEN_HISTORY = 2 class Console(Widget): mode = None @@ -26,9 +27,10 @@ class Console(Widget): self.commandlist = CommandList() self.settings.keys.initialize_console_commands(self.commandlist) self.clear() - self.histories = [None] * 2 + self.histories = [None] * 3 self.histories[DEFAULT_HISTORY] = History() self.histories[SEARCH_HISTORY] = History() + self.histories[QUICKOPEN_HISTORY] = History() def init(self): """override this. Called directly after class change""" @@ -273,6 +275,9 @@ class QuickOpenConsole(Console): prompt = 'open with: ' + def init(self): + self.history = self.histories[QUICKOPEN_HISTORY] + def execute(self): split = self.line.split() app, flags, mode = self._get_app_flags_mode() |