dahlbyk / posh-git

A PowerShell environment for Git
http://dahlbyk.github.io/posh-git/
MIT License
7.62k stars 802 forks source link

Intellisense works on commands that don't exist #941

Open MisinformedDNA opened 1 year ago

MisinformedDNA commented 1 year ago

System Details

Issue Description

I noticed that I can add any amount of text after a command and the autocomplete still works:

git branchjfhsdfhslfsd<tab>

This is because the IntelliSense doesn't require a space after the command:

"^branch.* (?<branch>\S*)$"

Unless I'm missing something, I would think it should be more like this

"^branch (.* )?(?<branch>\S*)$"