Skip to content

fix(herdr): free swap_pane_up from close_workspace chord - #10231

Open
kvnloo wants to merge 2 commits into
omacom:quattrofrom
kvnloo:fix/10062-herdr-swap-pane
Open

kvnloo wants to merge 2 commits into
omacom:quattrofrom
kvnloo:fix/10062-herdr-swap-pane

Conversation

@kvnloo

@kvnloo kvnloo commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • rebind close_workspace to prefix+shift+x
  • restore swap_pane_up = prefix+shift+k (herdr default; was shadowed with confirm_close=false)

Fixes #10062.

Verification

  • config/herdr/config.toml: close_workspace is not prefix+shift+k; swap_pane_up is

@chessing234 chessing234 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

restoring swap_pane_up and moving close_workspace off that chord is the right unshadow.

@kvnloo

kvnloo commented Sep 12, 2026

Copy link
Copy Markdown
Contributor Author

Salvaged into the Chessing234-approved leftover wave: #11555

Cherry-picked onto current quattro with author normalized to @kvnloo (Kevin Rajan <[email protected]>; lesseradmin is the same account). Please merge #11555 as the tranche and close this head as salvaged.

@kvnloo

kvnloo commented Sep 22, 2026

Copy link
Copy Markdown
Contributor Author

Salvaged into #12956 (cluster with #10232). Please close this head as salvaged after that lands.

@omarchybot omarchybot added bug Something isn't working verified Omarchy Triage has verified that this issue is ready for final review labels Sep 27, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

Reviewed at fae1b0d and reproduced on a disposable worker built from the Omarchy ISO (herdr 0.8.2), driving a real herdr client in a pty and reading the result back through herdr's API. No defects found.

  • The bug is real on quattro. With quattro's config/herdr/config.toml, two stacked panes plus a second workspace, focus on the bottom pane, then Ctrl+Space Shift+K: the whole workspace and both panes are gone. herdr 0.9.1's source shows the same behaviour: swap_pane_up still defaults to prefix+shift+k, and a user binding silently displaces a default on the same chord.
  • This fixes it. With this branch's config, the same keys swap the bottom pane to the top and both workspaces survive. Ctrl+Space Shift+X closes the workspace. prefix+shift+x is herdr's close_tab default, but this file already rebinds close_tab to prefix+k, so nothing else is on that chord.
  • Tests on the worker: ./test/cli passed, and so did herdr-keybindings-test.sh, config-test.sh, herdr-functions-test.sh and locale-env-test.sh. With quattro's config put back, the new test fails as it should. The full ./test/shell is not green, but every failure (in ascii, branding-about-animation, kernel-headers-migration, launch-browser, network-captive-portal, omarchy-kernel-migration, passwordless-grant-lifecycle and video-background, plus one ./test/cli vscode theme check) fails identically on quattro at 821ae58 without this change.
  • Second opinion: Codex Medium reviewed the diff and found no blocking defect, which agrees with the above (its independence from this review is not guaranteed). It also noted that the new test pins the two chords exactly rather than resolving every herdr default. So the config comment's "cannot silently reintroduce the collision" claims a little more than the test enforces. That is minor and nothing was pushed for it.

Two things only the maintainer can decide:

  • Which action keeps K. The file says it mirrors config/tmux/tmux.conf, where K is kill-session. This PR keeps herdr's swap default and moves workspace close to Shift+X, next to prefix+x for close pane (both unconfirmed under confirm_close = false). The alternative in Shipped herdr config binds prefix+shift+k to close_workspace, silently shadowing herdr's default swap_pane_up #10062 keeps K for close and moves the swap_pane_* family to prefix+shift+arrows. Both resolve the collision.
  • Existing installs. migrations/1786273938.sh only seeds ~/.config/herdr/config.toml when it is missing. Anyone who already has it keeps the collision until they run omarchy-refresh-herdr.

#12956 (same author) carries these exact herdr hunks bundled with an unrelated aarch64 kernel-detection change, and is currently conflicting with quattro. Codex Medium was asked separately which to prefer and also picked this one: same fix, nothing unrelated. This is now waiting on the maintainer.

kvnloo added a commit to kvnloo/omarchy that referenced this pull request Oct 22, 2026
Reconcile origin quattro while preserving the original omacom#12956 history.
Keep only the herdr close_workspace/swap_pane_up fix and its regression,
per maintainer review; kernel restart detection already landed through
birkskyum's omacom#14447 and is intentionally absent from this branch's diff.

Source: omacom#10231. No desktop-runtime acceptance claimed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working verified Omarchy Triage has verified that this issue is ready for final review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Shipped herdr config binds prefix+shift+k to close_workspace, silently shadowing herdr's default swap_pane_up

3 participants