summary refs log tree commit diff stats
path: root/ranger
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 /ranger
parentc8c92966bbbd2425fff1c3e4ae83cda8fa13a703 (diff)
downloadranger-e848e45204c291fde887a88c860bfee2f747a3af.tar.gz
added tentative tab completion for OpenConsole
Diffstat (limited to 'ranger')
-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 = {}
 
a id='n157' href='#n157'>157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272