feat: a shorter help bar: reveal or hide as it will, share, no note (#23)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit was merged in pull request #23.
This commit is contained in:
1 parent
80cfb3b425
commit
949d069806
6 files changed
+22
-9
No files matched your search
@@ -988,9 +988,14 @@ func TestRebindingShowsEverywhere(t *testing.T) {
|
||||
if !strings.Contains(scr, "z to reveal") || strings.Contains(scr, "space to reveal") {
|
||||
t.Errorf("detail hint doesn't follow the binding:\n%s", scr)
|
||||
}
|
||||
if !strings.Contains(lastLine(scr), "z reveal/hide") {
|
||||
if !strings.Contains(lastLine(scr), "z reveal") || strings.Contains(lastLine(scr), "reveal/hide") {
|
||||
t.Errorf("help bar: %q", lastLine(scr))
|
||||
}
|
||||
d.keys("z")
|
||||
if bar := lastLine(d.screen()); !strings.Contains(bar, "z hide") {
|
||||
t.Errorf("help bar with the value shown: %q", bar)
|
||||
}
|
||||
d.keys("z")
|
||||
if strings.Contains(scr, "to browse") {
|
||||
t.Errorf("hint for unbound versions:\n%s", scr)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user