Skip to content

Conversation

@ddworken
Copy link
Owner

Summary

This PR adds an optional preview pane feature that displays the full command of the currently selected history entry, solving the issue where long commands are truncated in the table view.

Note: This is a duplicate of #328 with signed commits so GitHub Actions will run against it.

Features

  • Toggle preview pane with Ctrl+O keybinding
  • Preview pane displays below the results table
  • Long commands automatically wrap for full visibility
  • Persistent setting via config (show-preview-pane)
  • New CLI commands: hishtory config-set/config-get show-preview-pane

Implementation

  • Added ShowPreviewPane field to ClientConfig
  • Added TogglePreviewPane keybinding (Ctrl+O by default)
  • Added renderPreviewPane() and wrapText() helper functions
  • Table height dynamically adjusts when preview is enabled
  • Added config-set/config-get commands for the setting
  • Added integration test for the feature

Testing

  • Manually tested the feature extensively
  • Added integration test testTui_previewPane
  • Feature is disabled by default, so existing behavior is unchanged

Original PR: #328 by @danielsanchezaran

danielsanchezaran and others added 5 commits November 29, 2025 21:30
This adds an optional preview pane that displays the full command
of the currently selected history entry, solving the issue where
long commands are truncated in the table view.

Features:
- Toggle preview pane with Ctrl+O keybinding
- Preview pane displays below the results table
- Long commands automatically wrap for full visibility
- Persistent setting via config (show-preview-pane)
- New CLI commands for configuration

Implementation:
- Added ShowPreviewPane field to ClientConfig
- Added TogglePreviewPane keybinding (Ctrl+O by default)
- Added renderPreviewPane() and wrapText() helper functions
- Table height dynamically adjusts when preview is enabled
- Added config-set/config-get commands for show-preview-pane

Signed-off-by: Daniel <danielsanchezaran@gmail.com>
Signed-off-by: Daniel <danielsanchezaran@gmail.com>
Add togglepreviewpane keybinding and showpreviewpane config to
TestStatusFullConfig, and add ctrl+o help text to TUI help pages.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Add ctrl+o toggle preview pane help text to fullscreen help golden.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
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.

3 participants