diff options
| author | Paul Bütow <1224732+snonux@users.noreply.github.com> | 2025-06-21 23:24:49 +0300 |
|---|---|---|
| committer | Paul Bütow <1224732+snonux@users.noreply.github.com> | 2025-06-21 23:24:49 +0300 |
| commit | 588c4b772cc782a2c190029e220290c89a08c8c9 (patch) | |
| tree | 290c8aa85847c004218fc854ae9aaefaceef868c /internal | |
| parent | d9e09559ad92df8284ac526a8ea4de359a761497 (diff) | |
Add theme toggling hotkeys
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/ui/table.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/internal/ui/table.go b/internal/ui/table.go index d0c62a0..ae3af66 100644 --- a/internal/ui/table.go +++ b/internal/ui/table.go @@ -589,6 +589,14 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { } } return m, nil + case "c": + m.theme = RandomTheme() + m.applyTheme() + return m, nil + case "C": + m.theme = m.defaultTheme + m.applyTheme() + return m, nil case "/", "?": m.searching = true m.searchInput.SetValue("") @@ -714,6 +722,8 @@ func (m Model) View() string { "p: set priority", "f: change filter", "t: edit tags", + "c: random theme", + "C: reset theme", "/, ?: search", "n/N: next/prev search match", "esc: close help/search", |
