summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-05-02 02:55:29 +0200
committerhut <hut@lavabit.com>2010-05-02 02:55:29 +0200
commit9a6688a27066d82190fe7f729b624cd2694c7f4c (patch)
tree3af2fccb1b1a45de07cee5c7e6a82216c3408c94 /ranger
parente782bf7955b6f3b9a48969a3a52462a95f26b96f (diff)
downloadranger-9a6688a27066d82190fe7f729b624cd2694c7f4c.tar.gz
defaults.commands: fixed :quit, added :quitall
Diffstat (limited to 'ranger')
-rw-r--r--ranger/defaults/commands.py19
1 files changed, 14 insertions, 5 deletions
diff --git a/ranger/defaults/commands.py b/ranger/defaults/commands.py
index bfe038c5..3fdf4ade 100644
--- a/ranger/defaults/commands.py
+++ b/ranger/defaults/commands.py
@@ -58,8 +58,8 @@ from ranger.api.commands import *
 
 alias('e', 'edit')
 alias('q', 'quit')
-alias('q!', 'quit!')
-alias('qall', 'quit!')
+alias('q!', 'quitall')
+alias('qall', 'quitall')
 
 class cd(Command):
 	"""
@@ -213,18 +213,27 @@ class quit(Command):
 		self.fm.tab_close()
 
 
-class quit_now(Command):
+class quitall(Command):
 	"""
-	:quit!
+	:quitall
 
 	Quits the program immediately.
 	"""
-	name = 'quit!'
 
 	def execute(self):
 		self.fm.exit()
 
 
+class quit_bang(quitall):
+	"""
+	:quit!
+
+	Quits the program immediately.
+	"""
+	name = 'quit!'
+	allow_abbrev = False
+
+
 class terminal(Command):
 	"""
 	:terminal