Clarify uses for results of `Get-PSReadLineOptions`
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
調査の方向性
Start by locating the implementation and output formatting for Get-PSReadLineOption, then compare it with the formatting used by Get-PSReadLineKeyHandlers. Determine how color-specific keys should be distinguished from other options and confirm whether the proposed presentation preserves existing behavior; done means the output clearly explains which keys Set-PSReadLineOption -Colors accepts.
索引モデルが issue の本文から書いたものです。
説明
Prerequisites
- Write a descriptive title.
Description of the new feature/enhancement
When I was exploring some of the coloring options available in PSReadLine I was confused when the options I got from Get-PSReadLine were not working when I did Set-PSReadLineOption -Colors @{<KEY>='Green'} . The options were expressed like "Color" but in order for them to work you just need "". An example of this confusion can be seen in screenshot below:

Proposed technical implementation details (optional)
Have more clear formatting to show the color options verses the other options available in PSReadLine, perhaps a header showing these are color specific keys. Maybe utilize the same formatting that Get-PSReadLineKeyHandlers use.
i.e
PS /Users/stevenbucher> Get-PSReadLineOption
Editmode
=======
Option Value Description
--- -------- -----------
EditMode : Emacs. Some description
History Options
============
AddToHistoryHandler : System.Func`2[System.String,System.Object]
HistoryNoDuplicates : True
HistorySavePath : /Users/stevenbucher/.local/share/powershell/PSReadLine/ConsoleHost_history.txt
HistorySaveStyle : SaveIncrementally
HistorySearchCaseSensitive : False
HistorySearchCursorMovesToEnd : False
MaximumHistoryCount : 4096
....
Color Options
==========
Option Value Description
--- -------- -----------
Command : "`e[93m" PowerShell Cmdlets
Comment : "`e[32m"
ContinuationPrompt : "`e[37m"
DefaultToken : "`e[37m"
Emphasis : "`e[96m"
Error : "`e[91m"
InlinePrediction : "`e[38;5;238m"
Keyword : "`e[92m"
ListPrediction : "`e[92m"
ListPredictionSelected : "`e[48;5;238m"
Member : "`e[97m"
Number : "`e[97m"
Operator : "`e[90m"
Parameter : "`e[90m"
Selection : "`e[30;47m"
String : "`e[36m"
Type : "`e[37m"
Variable : "`e[92m"
Very rough design but just a thought for potential way to do this.
NOTE: this would be a breaking change so may not be worth however my personal preference is having more detailed and categorization of these options.
- 主要言語
- C#
- スター
- 4.4k
- フォーク
- 341
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
PowerShell/PSReadLine のほかの issue
-
Needs-Triage :mag:
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
PowerShell/PSReadLine#5205 ·
-
Needs-Triage :mag:
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
PowerShell/PSReadLine#5195 ·
-
Needs-Triage :mag:
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
PowerShell/PSReadLine#5121 ·
-
Needs-Triage :mag:
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
PowerShell/PSReadLine#5045 ·
-
Area-CommandHelp Issue-Enhancement
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
PowerShell/PSReadLine#3470 · リアクション 3 件 ·
PowerShell/PSReadLine の issue をすべて見る
似ている issue
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
sillsdev/languageforge-lexbox#2665 ·
-
bug documentation frontend
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
azurenoops/spin_agent#975 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
-
:watch: Not Triaged 11.0 fundamentals/subsvc
難易度 2/5 1〜3時間 初心者へのやさしさ 92/100
dotnet/AspNetCore.Docs#37699 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
SubtitleEdit/subtitleedit#15108 · コメント 1 件 ·