dthree / vorpal

Node's framework for interactive CLIs
http://vorpal.js.org
MIT License
5.64k stars 280 forks source link

Autocompletion now completes to the last matching character #78

Closed jeff-1amstudios closed 8 years ago

jeff-1amstudios commented 8 years ago

if there are multiple matching commands, the last matching character is not displayed when hitting [tab]. In the below example, typing 'comm[tab]' autocompletes to 'comman' instead of 'command'.

var vorpal = require('vorpal')();
vorpal.command('command')
  .action(function (args, cb) {
    this.log('hello');
    cb();
  });

vorpal.command('command2')
  .action(function(args, cb) {
        this.log('hello world');
        cb();
  });

vorpal
  .show();
dthree commented 8 years ago

Hey, thanks! :+1: