No :Hg* completion in command line window

Issue #7 invalid
Patrice Peterson
created an issue

Neither the :Hg* command completion nor the filename completion work in the command-line window because it counts as a new buffer. Thus, the :Hg* commands are not defined in and cannot be completed.

Is there a way to transfer the "original" Lawrencium-related buffer settings over to the command-line window buffer?

Comments (6)

  1. Ludovic Chabant repo owner


    The :Hg* commands get defined for any buffer that's tied to a file which is part of a Mercurial repository. The command-line window is not related to a file, I think, so any :Hg command that you could hypothetically run in it would not know against what repository to act... unless I'm missing something?

  2. Patrice Peterson reporter

    No, you're not missing anything—the commands themselves work if I enter them in the command-line window, it's just the completion that does not. So I think the commands are actually executed in the context of the original buffer after you press Return. Basically, this report is meant as a feature request to enable Lawrencium completion when using the command-line window.

    Besides that, I love Lawrencium and don't want to live without it anymore. Thanks for a great plugin. That is all. :)

  3. Ludovic Chabant repo owner

    Hey, I must have missed the notification about your reply...

    I'm not sure how to implement auto-completion in the command-line window. It looks to me like <Tab> in that context will auto-complete words that exist in any open buffer, same as usual... it doesn't seem Vim is actually running the custom atuo-completion code that is defined for the command itself.

  4. Log in to comment