You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Auto-completion doesn't work for non build-in commands and path with [] #14015
The issue still exists after nearly 2 years... I hope it can be fixed.
Even worse, the built-in command also can't work with the autocomplete in this case.
Powershell is really non-intuitive in that part.
Autocompletion work most of the time, but some time it request adding special characters, and some time it doesn't work at all.
Your examples won't work because of one backtick character <`>. If you write two backticks, it will.
cat '.\`[ + <TAB> - don't work cat '.\``[ + <TAB> - work cat .\``[ + <TAB> - don't work again, because single quote symbol missing.
Hello, I'm currently working on improving the path completion (see: #19489 ).
When I look at this issue I think the user expectations are wrong.
The point of tab completion is to make it intelligently complete what you intended, based on your partial input. So if you want to complete the filename: [test].txt you shouldn't have to escape the wildcard characters yourself, you should just type them in as is and let the tab completion take care of escaping. So I would expect that the following examples should work:
I really like your suggestion, it's intuitive and simple.
Will it always work as intended? Can't say, i'm not a programmer. The maximum I can say is that some cmdlets have -Path and -LiteralPath keys, which interpret characters in names differently. Path require escaping some "special" characters, LiteralPath treat all characters literally.
microsoft-github-policy-service commented on Nov 16, 2023
This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.
microsoft-github-policy-service commented on Nov 16, 2023
This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.
microsoft-github-policy-service commented on Nov 16, 2023
This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.
Activity
hv0905 commentedon Jul 29, 2022
The issue still exists after nearly 2 years... I hope it can be fixed.
Even worse, the built-in command also can't work with the autocomplete in this case.
Repro
In this case, I can't perform an autocomplete.
Neither this.
Nino-kun commentedon Jul 30, 2022
Powershell is really non-intuitive in that part.
Autocompletion work most of the time, but some time it request adding special characters, and some time it doesn't work at all.
Your examples won't work because of one backtick character <`>. If you write two backticks, it will.
cat '.\`[ + <TAB> - don't work
cat '.\``[ + <TAB> - work
cat .\``[ + <TAB> - don't work again, because single quote symbol missing.
MartinGC94 commentedon Apr 12, 2023
Hello, I'm currently working on improving the path completion (see: #19489 ).
When I look at this issue I think the user expectations are wrong.
The point of tab completion is to make it intelligently complete what you intended, based on your partial input. So if you want to complete the filename:
[test].txtyou shouldn't have to escape the wildcard characters yourself, you should just type them in as is and let the tab completion take care of escaping. So I would expect that the following examples should work:This also means that if you type in a backtick, it would look for that literally, and that's what my current implementation does:
Do you agree that this is a better way to do it? Or is there something I'm missing?
Nino-kun commentedon Apr 12, 2023
I really like your suggestion, it's intuitive and simple.
Will it always work as intended? Can't say, i'm not a programmer. The maximum I can say is that some cmdlets have -Path and -LiteralPath keys, which interpret characters in names differently. Path require escaping some "special" characters, LiteralPath treat all characters literally.
microsoft-github-policy-service commentedon Nov 16, 2023
This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.
microsoft-github-policy-service commentedon Nov 16, 2023
This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.
microsoft-github-policy-service commentedon Nov 16, 2023
This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.
microsoft-github-policy-service commentedon Nov 23, 2023
This issue has been marked as "No Activity" as there has been no activity for 6 months. It has been closed for housekeeping purposes.