Changeset f34728b for perl/lib


Ignore:
Timestamp:
Oct 1, 2011, 10:59:21 PM (10 years ago)
Author:
Alex Dehnert <adehnert@mit.edu>
Branches:
master, release-1.9
Children:
4af1241, 8da4e96, ef4074b, 9579509, f49afc3
Parents:
f89cc6f
Message:
Add completion for reload-module
File:
1 edited

Legend:

Unmodified
Added
Removed
  • perl/lib/BarnOwl/ModuleLoader.pm

    rf544216 rf34728b  
    127127}
    128128
     129sub complete_module_name {
     130    return sort(keys %modules);
     131}
     132
    129133sub register_keybindings {
    130134    BarnOwl::new_command('reload-modules', sub {BarnOwl::ModuleLoader->reload}, {
     
    138142                           description => q{Reloads a single module located in ~/.owl/modules or the system modules directory}
    139143                          });
     144
     145    BarnOwl::Completion::register_completer('reload-module', \&complete_module_name);
    140146}
    141147
Note: See TracChangeset for help on using the changeset viewer.