[1847] in BarnOwl Developers

home help back first fref pref prev next nref lref last post

[PATCH 6/7] Further complete the show command

daemon@ATHENA.MIT.EDU (David Benjamin)
Thu Oct 29 18:23:11 2009

Resent-From: nelhage@mit.edu
Resent-To: barnowl-dev-mtg@charon.mit.edu
X-Original-To: nelhage@lunatique.mit.edu
From: David Benjamin <davidben@MIT.EDU>
To: barnowl-dev@mit.edu
Date: Sat, 24 Oct 2009 13:43:40 -0400
In-Reply-To: <1256406221-22905-6-git-send-email-davidben@mit.edu>

Add subcommands keymap(s) and errors. Also, complete from the list of
keymaps.

Signed-off-by: David Benjamin <davidben@mit.edu>
---
 perl/lib/BarnOwl/Complete/Client.pm |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/perl/lib/BarnOwl/Complete/Client.pm b/perl/lib/BarnOwl/Complete/Client.pm
index cbd867f..55fa577 100644
--- a/perl/lib/BarnOwl/Complete/Client.pm
+++ b/perl/lib/BarnOwl/Complete/Client.pm
@@ -23,9 +23,12 @@ my %show = (
     colors      => undef,
     commands    => undef,
     command     => \&complete_command,
+    errors      => undef,
     filters     => undef,
     filter      => \&complete_filter_name,
     license     => undef,
+    keymaps     => undef,
+    keymap      => \&complete_keymap,
     quickstart  => undef,
     startup     => undef,
     status      => undef,
@@ -44,6 +47,7 @@ sub complete_command { return sort @BarnOwl::all_commands; }
 sub complete_color { return @all_colors; }
 sub complete_variable    { return @{BarnOwl::all_variables()}; }
 sub complete_style       { return @{BarnOwl::all_styles()}; }
+sub complete_keymap      { return @{BarnOwl::all_keymaps()}; }
 
 sub complete_help {
     my $ctx = shift;
-- 
1.6.3.3


home help back first fref pref prev next nref lref last post