From f788ab43177eca3874e228e10a722faf5bb713ea Mon Sep 17 00:00:00 2001 From: Kyriakos Akriotis Date: Thu, 22 Oct 2026 12:45:16 +0200 Subject: [PATCH] added ctrl up, down and home and end to navigate in table and detail mode faster #164 --- internal/ui/app.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/internal/ui/app.go b/internal/ui/app.go index 023e1b7..2d74efb 100644 --- a/internal/ui/app.go +++ b/internal/ui/app.go @@ -289,6 +289,12 @@ func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { return m, tea.Quit case "c": return m, m.copyDetailsViewport() + case "ctrl+up", "home": + m.detailViewport.GotoTop() + return m, nil + case "ctrl+down", "end": + m.detailViewport.GotoBottom() + return m, nil } } @@ -390,6 +396,15 @@ func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { m.maxTableXOffset(), ) return m, nil + + case "ctrl+up", "home": + m.table.GotoTop() + return m, nil + + case "ctrl+down", "end": + m.table.GotoBottom() + return m, nil + } if cmd := m.executeResourceCommand(commandKey(msg)); cmd != nil {