Skip to content

fix: pass through non-printable leader keys in insert mode#45

Merged
oribarilan merged 1 commit into
mainfrom
fix/leader-insert-passthrough
Jun 16, 2026
Merged

fix: pass through non-printable leader keys in insert mode#45
oribarilan merged 1 commit into
mainfrom
fix/leader-insert-passthrough

Conversation

@oribarilan

Copy link
Copy Markdown
Owner

Closes #42.

Non-printable leader keys (e.g. ctrl+x) were consumed in insert mode with no effect — leaderChar() returned null but the code still set consume = true. Now they fall through to OpenCode's leader system, so sequences like ctrl+x m work from any mode.

Printable leaders (like space) still insert their character as before.

@oribarilan oribarilan merged commit 09fe201 into main Jun 16, 2026
1 check passed
@oribarilan oribarilan deleted the fix/leader-insert-passthrough branch June 16, 2026 11:35
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.

Non-printable leader key is swallowed in insert mode

1 participant