You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: allow overriding widget symbols with a custom glyph (#431)
* feat: allow overriding widget symbols with a custom glyph
Extends the item.character override (already honored by Git
Staged/Unstaged/Untracked) to every widget with a hardcoded symbol and
makes it editable in the TUI.
- Add src/widgets/shared/symbol-override.tsx: shared (g)lyph keybind,
symbol/prefix helpers, and a slot-based editor (type a character or
emoji, Backspace renders without a symbol, choosing the default clears
the override); single-symbol widgets store on item.character,
multi-symbol widgets keep per-part metadata keys
- Wire it into Git Branch (⎇), Git Worktree (𖠰), Git Worktree Mode (⎇),
Git Conflicts (⚠), JJ Bookmarks (🔖), JJ Workspace (◆), the three
presence widgets that already supported item.character, and the
multi-symbol widgets Git Ahead/Behind (↑/↓) and Git Status (!+*?)
- Add preview-path render coverage for default/override/suppressed plus
helper unit tests; document the keybind in docs/USAGE.md
Co-authored-by: Claude <noreply@anthropic.com>
* fix: align glyph editor labels
---------
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Matthew Breedlove <sirmalloc@gmail.com>
Copy file name to clipboardExpand all lines: docs/USAGE.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -176,6 +176,7 @@ The keybind footer in the TUI only shows shortcuts that apply to the currently s
176
176
177
177
Widget-specific shortcuts:
178
178
-**Git widgets with empty-state toggles**: `h` hide `no git` / empty output where supported
179
+
-**Glyph widgets** (Git Branch, Git Worktree, Git Worktree Mode, Git Staged, Git Unstaged, Git Untracked, Git Conflicts, Git Ahead/Behind, Git Status, JJ Bookmarks, JJ Workspace): `g` set custom glyphs for the widget's symbols; Backspace in the editor renders without one, and multi-symbol widgets (Ahead/Behind, Status) edit each part in one list
0 commit comments