Prediction Source "History" does not use all of the PSReadline history
還沒有人認領這個 Issue。
評估
研究方向
Reproduce the issue with Set-PSReadLineOption -MaximumHistoryCount 200000 and a history file containing more than 5128 entries. Start by tracing the history predictor path and how it selects entries, then verify that the oldest entries remain searchable and that the step 4 expected behavior is met.
由索引模型根據 Issue 內容生成。
描述
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues, especially the pinned issues.
Exception report
N/A
Screenshot
N/A
Environment data
PS Version: 7.5.4
PS HostName: ConsoleHost (Windows Terminal)
PSReadLine Version: 2.4.5
PSReadLine EditMode: Windows
OS: 10.0.26100.1 (WinBuild.160101.0800)
BufferWidth: 133
BufferHeight: 38
Steps to reproduce
- Set
Set-PSReadLineOption -MaximumHistoryCount 200000 - Not so sure how to arbitrarily fill the history but you need to ensure your history at
(cat (get-psreadLineOption).HistorySavePath | Measure-Object).Countis over5128 - Get the first item from history
cat (get-psreadLineOption).HistorySavePath -First 1 - Start typing the string from Step 3 in powershell, the history predictor does not show up anything even thought the item is already in PSReadline history
Expected behavior
The step 4 above should show the item from PSReadline history
Actual behavior
The step 4 above does not show the item from PSReadline history. It seems like the last item it will be show is (Current History Count)-5127
- 主要語言
- C#
- 星號
- 4.4k
- 分支
- 341
- PR 合併指標
- 30 天內沒有已合併 PR
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 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 個 reaction ·
查看 PowerShell/PSReadLine 的全部 Issue
相似的 Issue
-
core dependencies
難度 1/5 1 小時以內 新手友好度 80/100
-
bug frontend good first issue
難度 2/5 1-3 小時 新手友好度 75/100
-
NavigationViewItemAutomationPeer implements IInvokeProvider but never advertises the Invoke pattern 未關閉
難度 2/5 1-3 小時 新手友好度 75/100
unoplatform/uno#24629 ·
-
agentic-workflows Needs: Triage :mag: State: In-PR
難度 2/5 1-3 小時 新手友好度 70/100
-
Down / Waiting for removal
難度 2/5 1-3 小時 新手友好度 70/100