Vi-style : command mode + ctrl+w reclaim (window management phase 1)#81
Closed
gammons wants to merge 12 commits into
Closed
Vi-style : command mode + ctrl+w reclaim (window management phase 1)#81gammons wants to merge 12 commits into
gammons wants to merge 12 commits into
Conversation
This was referenced Jun 11, 2026
Owner
Author
|
Superseded by #87, which combines all three window-management phases into one mergeable PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ModeCommand::in normal mode opens a status-bar prompt with vim semantics (Esc/backspace-past-:cancel, Enter executes, unknown commands toast):command registry (internal/ui/command.go) as the extension point for later commands; v1 ships:ws(workspace finder)ctrl+wfrom the workspace finder so it can become the vim window-command prefix in phase 2; the help overlay now advertises:ws(workspaces also remain reachable via1-9)SetModecentrally clears the prompt if command mode is preempted (e.g. ctrl+c quit-confirm mid-prompt)Phase 1 of the vim-style window management design (
docs/superpowers/specs/2026-06-11-window-management-design.md); plan indocs/superpowers/plans/2026-06-11-window-management-phase1-command-mode.md.Test Plan
go test ./... -count=1),go vetclean, build clean:shows prompt + COMMAND pill;:wsopens workspace finder;:bogustoasts; Esc/backspace cancel;ctrl+wis a no-op;?help lists:wsand noctrl+w