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
I just verified it on another machine with fresh installation of 1.0.0.8
(which is current version in PSGet gallery).
Did you set "Emacs" mode (Set-PSReadlineOption -EditMode Emacs)?
It works fine in "Windows mode"
Here is output:
Windows PowerShell
Copyright (C) 2013 Microsoft Corporation. All rights reserved.
Yes, I know it's broken, but there is a good explanation why. The common prefix for all of the completions is '$' because one of the completions requires curly braces: ${env:ProgramFiles(x86)}.
I wanted to avoid interpreting the completions, which in this case would mean adding braces to all of the other completions. But the problem goes beyond variables.
Maybe I should just go straight to MenuComplete when the common unambiguous prefix is shorter word to complete.
FWIW the exact thing I was trying to do when it came to my attention was to get it to show me the right way to spell/escape/quote ${env:ProgramFiles(x86)} without googling it. Without PSReadline, it does if I keep tabbing...
Activity
vors commentedon Jun 21, 2014
Hi Keith,
I just verified it on another machine with fresh installation of 1.0.0.8
(which is current version in PSGet gallery).
Did you set "Emacs" mode (Set-PSReadlineOption -EditMode Emacs)?
It works fine in "Windows mode"
Here is output:
Windows PowerShell
Copyright (C) 2013 Microsoft Corporation. All rights reserved.
PS C:\WINDOWS\system32> Install-Module psreadline
Module PSReadLine was successfully installed.
C:\Users\sevoroby\Documents\WindowsPowerShell\Modules\PSReadLine
PS C:\WINDOWS\system32> Get-Module PSReadLine
ModuleType Version Name ExportedCommands
Script 1.0.0.8 PSReadLine
{Get-PSReadlineKeyHandler, Get-PSReadlineOption, Set-PSRea...
PS C:\WINDOWS\system32> Set-PSReadlineOption -EditMode Emacs
PS C:\WINDOWS\system32> $^C
PS C:\WINDOWS\system32>
On Fri, Jun 20, 2014 at 7:07 PM, Keith Hill notifications@github.com
wrote:
rkeithhill commentedon Jun 21, 2014
Sorry, I jumped the gun. I don't see the problem in "Windows" EditMode. I don't use the Emacs mode.
n8v commentedon Jan 30, 2015
👍
I am so happy to have PSReadLine but this is broken—when I hit tab it deletes everything back to the
$:lzybkr commentedon Jan 30, 2015
Yes, I know it's broken, but there is a good explanation why. The common prefix for all of the completions is '$' because one of the completions requires curly braces: ${env:ProgramFiles(x86)}.
I wanted to avoid interpreting the completions, which in this case would mean adding braces to all of the other completions. But the problem goes beyond variables.
Maybe I should just go straight to MenuComplete when the common unambiguous prefix is shorter word to complete.
n8v commentedon Jan 30, 2015
FWIW the exact thing I was trying to do when it came to my attention was to get it to show me the right way to spell/escape/quote
${env:ProgramFiles(x86)}without googling it. Without PSReadline, it does if I keep tabbing...lzybkr commentedon Jan 30, 2015
Until this is fixed, I suggest using Ctrl+Space.
If you forget and hit tab, remember that you can undo (Ctrl+_ in emacs mode, Ctrl+z in Windows mode), then hit Ctrl+Space.
n8v commentedon Jan 30, 2015
Thanks a lot for your attention and quick workaround.
lzybkr commentedon Nov 12, 2017
I think this was fixed in #515 - at any rate, it doesn't repro anymore.