{{ message }}
Repository navigation
Commit 9c136e8
committed
feat(prediction): support dynamic list height and remove history caps
Replace hardcoded prediction list limits with user-configurable sizing.
Summary:
- Remove the fixed 10-line cap and legacy auto-adjustment logic
- Prediction list height and capacity now scale based on user settings
- History suggestions are no longer artificially capped when plugins are active
Key changes:
- Convert ListMaxCount and HistoryMaxCount into dynamic properties
on PredictionListView
- Introduce layout constraints:
- PhysicalMax: based on console buffer height (-2 for jitter protection)
- PredictionViewHeight: limited by screen space and list capacity
- HistoryMaxCount: adjusted to fill the visible view
- Remove history cap in AggregateSuggestions (previously limited to 3)
Configuration:
Add new PSConsoleReadLineOptions properties:
- PredictionViewHeight: visible list height
- PredictionListCount: total scrollable items
- PredictionHistoryCount: history fetch limit
Signed-off-by: Konstantin Glukhov <KGlukhov@Hotmail.com>1 parent 2984546 commit 9c136e8
4 files changed
Lines changed: 84 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
29 | 41 | | |
30 | 42 | | |
31 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
114 | 117 | | |
115 | 118 | | |
116 | 119 | | |
| |||

0 commit comments