about summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-12-23 20:44:42 +0100
committerhut <hut@lavabit.com>2009-12-23 20:44:42 +0100
commit893dd6b4d301fcaccbc37a13746610a10149f0a1 (patch)
tree00ac5aab0c3224bf46b7e299795e79a53a66139d /ranger
parent99e6cf47f533a95bfffea93ebecdb7614a8e14f0 (diff)
downloadranger-893dd6b4d301fcaccbc37a13746610a10149f0a1.tar.gz
own history for quickopen-console
Diffstat (limited to 'ranger')
-rw-r--r--ranger/gui/widgets/console.py7
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()