set-content and get-content's -encoding parameter doesn't tab complete to all options
See original GitHub issueSteps to reproduce
I think this inhibits discovery.
set-psreadlineoption -editmode emacs
'hi there' | set-content file -encoding #press tab
# for example this works for ebcdic (or ibm037):
'hi there' | set-content file -encoding ebcdic-cp-us
Expected behavior
# many encodings, more than listed by [System.Text.Encoding]::GetEncodings()
Actual behavior
ascii bigendianutf32 unicode utf8 utf8NoBOM
bigendianunicode oem utf7 utf8BOM utf32
Environment data
Name Value
---- -----
PSVersion 7.1.1
PSEdition Core
GitCommitId 7.1.1
OS Microsoft Windows 10.0.19042
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:13 (5 by maintainers)
Top Results From Across the Web
Tab autocomplete in Visual Studio Code doesn't work
editor.tabCompletion was off. When I turn it on it toggles between some options (e.g. div/device) but doesn't close tags or complete anything.
Read more >Set-Content (Microsoft.PowerShell.Management)
The AsByteStream parameter ignores any encoding and the output is written as a stream of bytes. Type: SwitchParameter. Position: Named. Default value: None....
Read more >How to get bash to stop escaping $ during tab completion?
It looks like in ubuntu 22.04, you need to remove or comment out the completion code at the bottom of ~/bashrc. I then...
Read more >Fragment | Android Developers
All subclasses of Fragment must include a public no-argument constructor. ... layout that doesn't include the same fragments as the previous layout.
Read more >Cannot troubleshoot a Web service that's behind a closed ...
When the Web service is behind a closed firewall, the system can't locate whether the error is a network failure or a SM...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
A bit of a sidenote, but the displaynames of the encodings in the docs are completely different. Over 30 kinds of ebcdic! https://docs.microsoft.com/en-us/dotnet/api/system.text.encoding?view=net-5.0#list-of-encodings
I don’t think this is too horrible if tab shows all options at once. Plus there’s the benefit of knowing this improvement actually exists. It’s like pressing tab after get-childitem in a folder with at least 100 files. It can be limited by typing the first few characters. It will ask first if you want to display all possibilities. (based on https://adamtheautomator.com/powershell-tab-completion/)