Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
Remove unused preview toggle keybind
Maximilian Roos6919580f2321
diff --git a/src/commands/select.rs b/src/commands/select.rsindex 3cd3e3e5f..181841deb 100644--- a/src/commands/select.rs+++ b/src/commands/select.rs@@ -302,7 +302,7 @@ impl WorktreeSkimItem {let tab1 = format_tab("1: HEAD±", mode == PreviewMode::WorkingTree);let tab2 = format_tab("2: history", mode == PreviewMode::History);let tab3 = format_tab("3: main…±", mode == PreviewMode::BranchDiff);- let controls = format_tab("ctrl-u/d: scroll | ctrl-p: preview", false);+ let controls = format_tab("ctrl-u/d: scroll", false);format!("{} | {} | {}\n{}\n\n", tab1, tab2, tab3, controls)}@@ -562,8 +562,6 @@ pub fn handle_select(is_directive_mode: bool) -> anyhow::Result<()> {// Preview scrolling"ctrl-u:preview-page-up".to_string(),"ctrl-d:preview-page-down".to_string(),- // Preview toggle (ctrl-p is universally supported, unlike ctrl-/)- "ctrl-p:toggle-preview".to_string(),])// Legend/controls moved to preview window tabs (render_preview_tabs).no_clear(true) // Prevent skim from clearing screen, we'll do it manuallydiff --git a/tests/integration_tests/snapshots/integration__integration_tests__select__select_abort_escape.snap b/tests/integration_tests/snapshots/integration__integration_tests__select__select_abort_escape.snapindex 8591e3458..10f832061 100644--- a/tests/integration_tests/snapshots/integration__integration_tests__select__select_abort_escape.snap+++ b/tests/integration_tests/snapshots/integration__integration_tests__select__select_abort_escape.snap@@ -3,7 +3,7 @@ source: tests/integration_tests/select.rsexpression: normalized---> [QUERY] │[PREVIEW_HEADER]- Branch Status HEAD± main↕ Path Remote⇅ Co│ctrl-u/d: scroll | ctrl-p: preview+ Branch Status HEAD± main↕ Path Remote⇅ Co│ctrl-u/d: scroll> @ main ^ . ..││No uncommitted changes│diff --git a/tests/integration_tests/snapshots/integration__integration_tests__select__select_multiple_worktrees.snap b/tests/integration_tests/snapshots/integration__integration_tests__select__select_multiple_worktrees.snapindex b91675804..80ccd5dd3 100644--- a/tests/integration_tests/snapshots/integration__integration_tests__select__select_multiple_worktrees.snap+++ b/tests/integration_tests/snapshots/integration__integration_tests__select__select_multiple_worktrees.snap@@ -1,10 +1,9 @@---source: tests/integration_tests/select.rs-assertion_line: 268expression: normalized---> [QUERY] │[PREVIEW_HEADER]- Branch Status HEAD± main↕ Path │ctrl-u/d: scroll | ctrl-p: preview+ Branch Status HEAD± main↕ Path │ctrl-u/d: scroll> @ main ^ ./test-rep..│+ feature-one ∅ ./feature-..│No uncommitted changes+ feature-two ∅ ./feature-..│diff --git a/tests/integration_tests/snapshots/integration__integration_tests__select__select_preview_history.snap b/tests/integration_tests/snapshots/integration__integration_tests__select__select_preview_history.snapindex deb3c5e5d..470535031 100644--- a/tests/integration_tests/snapshots/integration__integration_tests__select__select_preview_history.snap+++ b/tests/integration_tests/snapshots/integration__integration_tests__select__select_preview_history.snap@@ -3,7 +3,7 @@ source: tests/integration_tests/select.rsexpression: normalized---> [QUERY] │[PREVIEW_HEADER]- Branch Status HEAD± main↕ Path Rem│ctrl-u/d: scroll | ctrl-p: preview+ Branch Status HEAD± main↕ Path Rem│ctrl-u/d: scroll> + feature ↑ ↑5 ./feature ..││* b1549b6 (feature) Add file 5 with important changes│* 111f7e4 Add file 4 with important changesdiff --git a/tests/integration_tests/snapshots/integration__integration_tests__select__select_preview_main_diff.snap b/tests/integration_tests/snapshots/integration__integration_tests__select__select_preview_main_diff.snapindex abbe4f521..be689b1de 100644--- a/tests/integration_tests/snapshots/integration__integration_tests__select__select_preview_main_diff.snap+++ b/tests/integration_tests/snapshots/integration__integration_tests__select__select_preview_main_diff.snap@@ -3,7 +3,7 @@ source: tests/integration_tests/select.rsexpression: normalized---> [QUERY] │[PREVIEW_HEADER]- Branch Status HEAD± main↕ Path Rem│ctrl-u/d: scroll | ctrl-p: preview+ Branch Status HEAD± main↕ Path Rem│ctrl-u/d: scroll> + feature ↑ ↑2 ./feature ..││ feature_code.rs | 6 ++++++│ tests.rs | 4 ++++diff --git a/tests/integration_tests/snapshots/integration__integration_tests__select__select_preview_uncommitted.snap b/tests/integration_tests/snapshots/integration__integration_tests__select__select_preview_uncommitted.snapindex 0a8f14462..e14c584cd 100644--- a/tests/integration_tests/snapshots/integration__integration_tests__select__select_preview_uncommitted.snap+++ b/tests/integration_tests/snapshots/integration__integration_tests__select__select_preview_uncommitted.snap@@ -3,7 +3,7 @@ source: tests/integration_tests/select.rsexpression: normalized---> [QUERY] │[PREVIEW_HEADER]- Branch Status HEAD± main↕ Path Rem│ctrl-u/d: scroll | ctrl-p: preview+ Branch Status HEAD± main↕ Path Rem│ctrl-u/d: scroll> + feature ! ↑ +3 -1 ↑1 ./feature ..││ tracked.txt | 4 +++-│ 1 file changed, 3 insertions(+), 1 deletion(-)diff --git a/tests/integration_tests/snapshots/integration__integration_tests__select__select_with_branches.snap b/tests/integration_tests/snapshots/integration__integration_tests__select__select_with_branches.snapindex 8826979ea..8a056a8ef 100644--- a/tests/integration_tests/snapshots/integration__integration_tests__select__select_with_branches.snap+++ b/tests/integration_tests/snapshots/integration__integration_tests__select__select_with_branches.snap@@ -3,7 +3,7 @@ source: tests/integration_tests/select.rsexpression: normalized---> [QUERY] │[PREVIEW_HEADER]- Branch Status HEAD± main↕ Path │ctrl-u/d: scroll | ctrl-p: preview+ Branch Status HEAD± main↕ Path │ctrl-u/d: scroll> @ main ^ ./test..│+ active-worktree ∅ ./acti..│No uncommitted changesorphan-branch ∅ ⎇ ..│