diff options
| author | blasty <blasty@local> | 2026-07-24 16:26:42 +0200 |
|---|---|---|
| committer | blasty <blasty@local> | 2026-07-24 16:26:42 +0200 |
| commit | 7601d5e18af5cea8abdf37a132806f52df26f8c8 (patch) | |
| tree | 9879e01b2b66e0512075d1874aa3d82aea0b3073 /idatui | |
| parent | palette: replace the stock Ctrl+P command palette with real ida-tui actions (diff) | |
| download | ida-tui-7601d5e18af5cea8abdf37a132806f52df26f8c8.tar.gz ida-tui-7601d5e18af5cea8abdf37a132806f52df26f8c8.tar.xz ida-tui-7601d5e18af5cea8abdf37a132806f52df26f8c8.zip | |
palette: give the command palette side padding (80% width, max 120)
The stock Ctrl+P palette spans the full terminal width, which looks off on wide
terminals. Constrain CommandPalette > Vertical (and the #--results/CommandList
overlay) to 80% width capped at 120 cols; it's already center-aligned, so this
leaves symmetric left/right margins.
Verified via pilot: input-row width 78/110/118 for terminals 100/140/200 (vs
full width before), and the palette scenarios still pass (7/7).
Diffstat (limited to 'idatui')
| -rw-r--r-- | idatui/app.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/idatui/app.py b/idatui/app.py index 2a3e617..75a3f5a 100644 --- a/idatui/app.py +++ b/idatui/app.py @@ -2452,6 +2452,9 @@ class IdaTui(App): #xref-title { dock: top; height: 1; background: $accent; color: $text; padding: 0 1; } #xref-list { height: auto; max-height: 100%; } SymbolPalette { align: center middle; } + /* Give the stock Ctrl+P command palette side padding instead of full width. */ + CommandPalette > Vertical { width: 80%; max-width: 120; } + CommandPalette #--results, CommandPalette CommandList { width: 80%; max-width: 120; } #pal-box { width: 96; max-width: 92%; height: auto; max-height: 80%; border: thick $accent; background: $panel; } #pal-title { dock: top; height: 1; background: $accent; color: $text; padding: 0 1; } |
