AV-98-fork

A fork of https://tildegit.org/solderpunk/AV-98
Log (Feed) | Files | Refs (Tags) | README | LICENSE

commit 6b17792546747c134242ec59e2d10083ceece249
parent dbe08ee78763cfc3226b5d9f20f27021a7aa326f
Author: solderpunk <solderpunk@sdf.org>
Date:   Wed, 27 May 2020 14:46:54 -0400

Merge pull request 'Add `abbrevs` command' (#13) from vee/AV-98:vee/abbrevs into master

Diffstat:
Mav98.py | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/av98.py b/av98.py @@ -1088,6 +1088,15 @@ Slow internet connection? Use 'set timeout' to be more patient.""") if "%s" not in handler: print("Are you sure you don't want to pass the filename to the handler?") + def do_abbrevs(self, *args): + """Print all AV-98 command abbreviations.""" + header = "Command Abbreviations" + self.stdout.write("{}\n".format(str(header))) + if self.ruler: + self.stdout.write("{}\n".format(str(self.ruler * len(header)))) + for k, v in _ABBREVS.items(): + self.stdout.write("{:<7} {}\n".format(k, v)) + ### Stuff for getting around def do_go(self, line): """Go to a gemini URL or marked item."""