diff options
author | hut <hut@lavabit.com> | 2011-10-08 04:42:09 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2011-10-08 04:42:09 +0200 |
commit | 5157a041749fd3c43c0376ef375aca176da2d7ef (patch) | |
tree | 912681da289853ad81fd708ddd178938cd69a640 /ranger | |
parent | 624d79241a3e9b3293fb6b0706927c95e932a15f (diff) | |
download | ranger-5157a041749fd3c43c0376ef375aca176da2d7ef.tar.gz |
defaults.commands: modified :help to make use of quantifiers
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/core/actions.py | 2 | ||||
-rw-r--r-- | ranger/defaults/commands.py | 9 |
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): |