From b547dc4372175bc54ca3bfdeb215b9734987c669 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 4 Mar 2026 13:58:36 +0200 Subject: tui: fix entry editing keys and show session durations Bump version to v0.6.0. --- internal/tui/tui.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'internal/tui/tui.go') diff --git a/internal/tui/tui.go b/internal/tui/tui.go index 926c331..3c4feb6 100644 --- a/internal/tui/tui.go +++ b/internal/tui/tui.go @@ -137,6 +137,7 @@ func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { case tea.KeyMsg: key := msg.String() + entriesCapturingText := m.activeTab == tabEntries && m.entries.capturesTextInput() if m.confirmQuit { switch key { @@ -159,6 +160,10 @@ func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { } } + if entriesCapturingText { + m.pendingG = false + } + if m.pendingZ { m.pendingZ = false if key == "Q" { @@ -166,7 +171,7 @@ func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { } } - if m.pendingG { + if m.pendingG && !entriesCapturingText { m.pendingG = false switch key { case "t": @@ -206,6 +211,9 @@ func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { } return m, nil case "g": + if entriesCapturingText { + break + } m.pendingG = true return m, nil case "Z": -- cgit v1.2.3