Skip to content

Conversation

@bborn
Copy link
Owner

@bborn bborn commented Jan 31, 2026

Summary

  • Added unit tests to verify the shell pane toggle key binding (\) is correctly configured
  • Verified the IsShellPaneHidden() state accessor works properly
  • Confirmed the help text is displayed correctly as "toggle shell"

Test plan

  • Run go test ./internal/ui/... -v -run "ShellPane|ToggleShellPane" - all tests pass
  • Run go test ./... - all existing tests still pass
  • Manual testing: In the TUI detail view, press \ to toggle shell pane visibility

Implementation review

The shell pane toggle feature (added in commit e38d4ad) was reviewed and works correctly:

  1. Key binding: \ is bound to ToggleShellPane in app.go:204-207
  2. Key handler: Calls m.detailView.ToggleShellPane() in app.go:1662-1665
  3. Toggle logic: detail.go:1378-1545 handles hide/show with proper state management
  4. Persistence: Settings are saved to database (SettingShellPaneHidden)
  5. State restoration: Shell pane hidden preference is loaded at startup in detail.go:282-284
  6. Help text: Visible in full help view at app.go:99

🤖 Generated with Claude Code

bborn and others added 3 commits January 31, 2026 09:26
Verify that the backslash (\) key binding for toggling the shell pane is:
- Properly defined with the correct key
- Has correct help text ("toggle shell")
- State accessor IsShellPaneHidden() returns correct values

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add the backslash (\) shortcut to the help bar at the bottom of the
detail view. The shortcut shows "hide shell" when the shell pane is
visible and "show shell" when it's hidden.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The \ shortcut only works in detail view where there's a shell pane.
Remove it from the kanban FullHelp() - it's now only shown in the
detail view help bar where it's actually usable.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@bborn bborn force-pushed the task/786-check-that-cmd-to-toggle-shell-pane-actu branch from 23c6663 to 474e6df Compare January 31, 2026 15:26
@bborn bborn merged commit 7ce62ae into main Jan 31, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants