[RFC] make miss alias to missing?

Julio Biason julio.biason at gmail.com
Tue Jan 10 12:41:36 GMT 2006


On 10/01/06, Wouter van Heyst <larstiq at larstiq.dyndns.org> wrote:
> > Why not autocomplete on every command?  I.E. why not hack get_cmd_object
> > to search though all of the commands and see if only one command has a
> > leading match? That would allow for things like "bzr com" "bzr l" and such
>
> That will certainly break with new versions of bzr/plugins. There is
> some value in predictability.

Using the "whole" command name would make them predictable.

I'm thinking about VIM: it also uses autocompletion of commands, when
there is no ambiguous command (say, :m could be :move, :mark, :make,
but :ln can be only expanded to :lnoremap, so it will use that).
People that write plugins for VIM usually use the whole command, to
avoid that. Also, VIM forces plugins to register commands with the
first letter as uppercase, to avoid colisions with internal commands.
Maybe some thing like that, some prefix on plugins commands?

--
Julio Biason <julio.biason at gmail.com>




More information about the bazaar mailing list