Add popup notifications, log view (F5) and context-sensitive key hints (M9)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-20 19:48:04 +02:00
co-authored by Claude Sonnet 5.5
parent b760d05e10
commit 354279ab55
10 changed files with 324 additions and 58 deletions
+2 -5
View File
@@ -54,14 +54,11 @@ func (a *App) openReleases(title string, fetch func(context.Context) ([]arr.Rele
table: tview.NewTable().SetSelectable(true, false).SetFixed(1, 0),
detail: tview.NewTextView().SetDynamicColors(true).SetWordWrap(true),
}
foot := tview.NewTextView().SetDynamicColors(true).
SetText("[gray]Enter/g grab · s sort · f hide rejected · Esc back")
v.table.SetBorder(true)
v.root = tview.NewFlex().SetDirection(tview.FlexRow).
AddItem(v.header, 1, 0, false).
AddItem(v.table, 0, 1, true).
AddItem(v.detail, 3, 0, false).
AddItem(foot, 1, 0, false)
AddItem(v.detail, 3, 0, false)
v.table.SetSelectionChangedFunc(func(int, int) { v.renderDetail() })
v.table.SetSelectedFunc(func(int, int) { v.grabSelected() })
@@ -86,7 +83,7 @@ func (a *App) openReleases(title string, fetch func(context.Context) ([]arr.Rele
ctx, cancel := context.WithTimeout(context.Background(), 3*time.Minute)
v.cancel = cancel
v.render() // shows the "searching" placeholder
a.openFull(v.root)
a.openFull(v.root, "Enter/g grab · s sort · f hide rejected · Esc back")
go func() {
releases, err := fetch(ctx)