Changeset 4fde21c for perl/lib/BarnOwl


Ignore:
Timestamp:
Jul 29, 2009, 10:05:51 PM (12 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
f907cf0
Parents:
747d6a5
git-author:
Nelson Elhage <nelhage@mit.edu> (07/29/09 21:43:35)
git-committer:
Nelson Elhage <nelhage@mit.edu> (07/29/09 22:05:51)
Message:
Completion: complete filter names
File:
1 edited

Legend:

Unmodified
Added
Removed
  • perl/lib/BarnOwl/Complete/Client.pm

    rd4ecc78 r4fde21c  
    2121sub complete_color { return @all_colors; }
    2222
     23sub complete_filter_args {
     24    my $ctx = shift;
     25    my $arg = shift;
     26    return if $arg;
     27    return @{BarnOwl::all_filters()};
     28}
     29
    2330sub complete_help {
    2431    my $ctx = shift;
     
    3946           "-b" => \&complete_color,
    4047        },
    41         undef # TODO: make this get list of filters for the first argument
    42               # then maybe some magic like completing keywords instance and other shiny
     48         \&complete_filter_args
    4349        );
    4450}
Note: See TracChangeset for help on using the changeset viewer.