summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2011-10-08 04:42:09 +0200
committerhut <hut@lavabit.com>2011-10-08 04:42:09 +0200
commit5157a041749fd3c43c0376ef375aca176da2d7ef (patch)
tree912681da289853ad81fd708ddd178938cd69a640
parent624d79241a3e9b3293fb6b0706927c95e932a15f (diff)
downloadranger-5157a041749fd3c43c0376ef375aca176da2d7ef.tar.gz
defaults.commands: modified :help to make use of quantifiers
-rw-r--r--ranger/core/actions.py2
-rw-r--r--ranger/defaults/commands.py9
2 files changed, 9 insertions, 2 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index 080d4b86..be989b18 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -812,7 +812,7 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware):
 				write(cleandoc(cmd.__doc__))
 			else:
 				write(":%s - No documentation available." % cmd.get_name())
-			write("\n\n" + "=" * 60 + "\n")
+			write("\n\n" + "-" * 60 + "\n")
 
 		temporary_file.flush()
 		self.run(app='pager', files=[File(temporary_file.name)])
diff --git a/ranger/defaults/commands.py b/ranger/defaults/commands.py
index d046d5a6..29c086f8 100644
--- a/ranger/defaults/commands.py
+++ b/ranger/defaults/commands.py
@@ -814,7 +814,14 @@ class help_(Command):
 	"""
 	name = 'help'
 	def execute(self):
-		self.fm.display_help()
+		if self.quantifier == 1:
+			self.fm.dump_keybindings()
+		elif self.quantifier == 2:
+			self.fm.dump_commands()
+		elif self.quantifier == 3:
+			self.fm.dump_settings()
+		else:
+			self.fm.display_help()
 
 
 class copymap(Command):
18 00:41:50 +0100 examples/rifle_sxiv.sh: removed realpath dependency' href='/akspecs/ranger/commit/examples/rifle_sxiv.sh?id=baf1bafa5c90b856c690b33ff74bc0fec344ae1c'>baf1bafa ^
b53a97ed ^
baf1bafa ^




b53a97ed ^

bef8a8f8 ^
796074b5 ^
dcbc83fe ^

b53a97ed ^
62af2777 ^
dcbc83fe ^

796074b5 ^
dcbc83fe ^
796074b5 ^
dcbc83fe ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48