docs(tui): include auto refresh in controls

This commit is contained in:
Vincent Koc 2026-05-03 10:03:42 -07:00
parent e0cbbc43d7
commit 5da91640e6
No known key found for this signature in database
2 changed files with 2 additions and 1 deletions

View File

@ -180,6 +180,7 @@ func ControlsHelp() string {
o open selected URL
c copy selected URL
wheel or j/k scroll focused pane
auto-refresh pick up archive changes every 15s when available
? in-app help
q quit`)
}

View File

@ -84,7 +84,7 @@ func TestBrowseJSONEncodesNilRowsAsEmptyArray(t *testing.T) {
func TestControlsHelpDocumentsGitcrawlLikeActions(t *testing.T) {
help := ControlsHelp()
for _, want := range []string{"right-click", "a", "m", "s", "S", "/", "#", "v", "d", "l", "o", "c", "q"} {
for _, want := range []string{"right-click", "a", "m", "s", "S", "/", "#", "v", "d", "l", "r", "auto-refresh", "o", "c", "q"} {
if !strings.Contains(help, want) {
t.Fatalf("controls help missing %q:\n%s", want, help)
}