Skip to content

feat: <CR> respects mode-specific keymaps#14

Open
WayneKent wants to merge 1 commit into
Tarquinen:mainfrom
WayneKent:feat/cr-mode-aware
Open

feat: <CR> respects mode-specific keymaps#14
WayneKent wants to merge 1 commit into
Tarquinen:mainfrom
WayneKent:feat/cr-mode-aware

Conversation

@WayneKent

Copy link
Copy Markdown

Summary

Make <CR> (Enter) respect mode-specific keymaps from tui.json, just like any other keybinding.

Changes

  • Insert mode: <CR> now goes through handleInsertKeybind, supporting "submit" and "normal" mappings. Unmapped <CR> falls through to the host (inserts newline or submits, depending on input_submit).
  • Normal mode: <CR> routes through processKeystroke for proper keybind resolution — supports "submit", "insert", and arbitrary Vim key sequences. Falls back to submit when unmapped.
  • Documentation: Rewrote the built-in actions reference with a unified table. Added Chinese translation (README.zh.md, docs/configuration.zh.md).

Pass <CR> through handleInsertKeybind in insert mode.
Route normal mode <CR> through processKeystroke for keybind resolution.
Fallback to submit when normal mode <CR> has no mapping.
Document input_submit interaction and add Chinese translation.
@WayneKent

Copy link
Copy Markdown
Author

Hi, just a friendly bump — appreciate your time when you get a chance to review. Thanks!

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