summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-01-13 04:50:26 +0100
committerhut <hut@lavabit.com>2010-01-13 04:50:26 +0100
commite848e45204c291fde887a88c860bfee2f747a3af (patch)
treea6742947cd7a2db88ecfdbc98406bfea7c4ad218
parentc8c92966bbbd2425fff1c3e4ae83cda8fa13a703 (diff)
downloadranger-e848e45204c291fde887a88c860bfee2f747a3af.tar.gz
added tentative tab completion for OpenConsole
-rw-r--r--ranger/gui/widgets/console.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/ranger/gui/widgets/console.py b/ranger/gui/widgets/console.py
index 2e0a4ffb..d3b6138b 100644
--- a/ranger/gui/widgets/console.py
+++ b/ranger/gui/widgets/console.py
@@ -333,7 +333,7 @@ class SearchConsole(Console):
 		Console.execute(self)
 
 
-class OpenConsole(Console):
+class OpenConsole(ConsoleWithTab):
 	"""
 	The OpenConsole allows you to execute shell commands:
 	!vim *         will run vim and open all files in the directory.
@@ -369,7 +369,11 @@ class OpenConsole(Console):
 			log(command)
 			self.fm.execute_command(command, flags=flags)
 		Console.execute(self)
-	
+
+	def _get_tab(self):
+		# for now, just add " %s"
+		return self.line + ' %s'
+
 	def _substitute_metachars(self, command):
 		dct = {}