Ignore:
Timestamp:
Jul 27, 2009, 11:23:57 PM (15 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
5368d75
Parents:
d7bcff8
git-author:
Nelson Elhage <nelhage@mit.edu> (07/27/09 20:24:21)
git-committer:
Nelson Elhage <nelhage@mit.edu> (07/27/09 23:23:57)
Message:
Implement tab completion for command names.
File:
1 edited

Legend:

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

    rd7bcff8 r6e48560  
    101101                           "DEPRECATED in favor of BarnOwl::create_style(NAME, OBJECT)",
    102102                          });
     103    BarnOwl::new_command('edit:complete' => \&BarnOwl::Completion::do_complete,
     104                       {
     105                           summary     => "Complete the word at point",
     106                           usage       => "complete",
     107                           description =>
     108                           "This is the function responsible for tab-completion."
     109                       });
     110    BarnOwl::bindkey(editline => TAB => command => 'edit:complete');
    103111}
    104112
Note: See TracChangeset for help on using the changeset viewer.