Skip to content

Commit 6c51b24

Browse files
cpcloudclaude
andcommitted
feat(ui): B/F keybindings to jump to first/last tab
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent aa34ba0 commit 6c51b24

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

internal/app/model.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,22 @@ func (m *Model) handleNormalKeys(key tea.KeyMsg) (tea.Cmd, bool) {
442442
m.prevTab()
443443
}
444444
return nil, true
445+
case "F":
446+
if !m.inDetail() {
447+
if m.showDashboard {
448+
m.showDashboard = false
449+
}
450+
m.switchToTab(len(m.tabs) - 1)
451+
}
452+
return nil, true
453+
case "B":
454+
if !m.inDetail() {
455+
if m.showDashboard {
456+
m.showDashboard = false
457+
}
458+
m.switchToTab(0)
459+
}
460+
return nil, true
445461
case "n":
446462
m.togglePinAtCursor()
447463
return nil, true

internal/app/view.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,7 @@ func (m *Model) helpContent() string {
706706
{"g/G", "First/last row"},
707707
{"d/u", "Half page down/up"},
708708
{"b/f", "Switch tabs"},
709+
{"B/F", "First/last tab"},
709710
{"s/S", "Sort / clear sorts"},
710711
{"t", "Toggle settled projects"},
711712
{"/", "Find column"},

0 commit comments

Comments
 (0)