Skip to content

Support keyboard action chains in command mode - #4266

Draft
hafizahmedzia wants to merge 3 commits into
micro-editor:masterfrom
hafizahmedzia:oss-oct15-command-key-chains
Draft

hafizahmedzia wants to merge 3 commits into
micro-editor:masterfrom
hafizahmedzia:oss-oct15-command-key-chains

Conversation

@hafizahmedzia

Copy link
Copy Markdown

Custom command-bar bindings can now chain built-in command and buffer keyboard actions through one resolver and a command-context adapter. Comma sequencing and &/| short-circuit behavior handle prompt closure or replacement while keeping document edits isolated. Existing raw, mouse and mixed-sequence single bindings and shared prefixes are preserved.

Refs #4019. Thanks to injust for describing the gap. This is a bounded enhancement for maintainer discussion: new chains cover keyboard keys and keyboard-only sequences. It does not add command:, command-edit:, lua: or mouse-chain parity, and it leaves the #3973 default-shortcut workaround in place. It does not claim full issue closure.

Validation performed previously on Linux at e207f97: the final new regression failed as expected on the unchanged source and passed with this corrected patch. Focused tests, make test, uncached go test ./... and make build passed with Go 1.27.2. Focused/full uncached tests, build and a controlling-PTY smoke test also passed with the declared minimum Go 1.19.13. Independent compatibility probes and the full uncached Go suite passed on this final revision.

Native macOS/Windows, intermediate CI Go versions and visual terminal screenshots remain unrun.

Prepared with OpenAI Codex assistance for implementation, tests and validation.

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.

1 participant