Tab cycles panels within a view; views switch only via F1-F4/Alt+digit

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-20 19:22:24 +02:00
co-authored by Claude Sonnet 5.5
parent 0b4af81203
commit 093fe53291
6 changed files with 25 additions and 18 deletions
+1 -7
View File
@@ -164,7 +164,7 @@ func (a *App) Run() error {
}
func (a *App) renderStatus() {
hints := "[gray]?/F9 help · q quit · Tab/F1-F4 views · / search"
hints := "[gray]?/F9 help · q quit · F1-F4 views · Tab panels · / search"
if len(a.overlays) > 0 {
hints = "[gray]Esc back · Ctrl+C quit"
}
@@ -260,12 +260,6 @@ func (a *App) handleKey(ev *tcell.EventKey) *tcell.EventKey {
return ev
}
switch ev.Key() {
case tcell.KeyTab:
a.switchTo((a.active + 1) % len(a.views))
return nil
case tcell.KeyBacktab:
a.switchTo((a.active + len(a.views) - 1) % len(a.views))
return nil
case tcell.KeyRune:
if ev.Rune() == 'q' {
a.app.Stop()