feat(tui,coding-agent): add shell-style keybindings alt+b, alt+f, ctrl+d

- Add alt+b/alt+f as alternative bindings for cursorWordLeft/cursorWordRight
- Add ctrl+d as alternative binding for deleteCharForward
- Fix ctrl+d in custom editor to perform delete when text is present
  (previously it was always consumed, even with non-empty input)

Closes #1043

Co-authored-by: Jason Ish <ish@unx.ca>
This commit is contained in:
Mario Zechner 2026-01-29 00:21:39 +01:00
parent 5ef79459dc
commit 81be81328c
5 changed files with 16 additions and 7 deletions

View file

@ -61,8 +61,9 @@ export class CustomEditor extends Editor {
if (this.getText().length === 0) {
const handler = this.onCtrlD ?? this.actionHandlers.get("exit");
if (handler) handler();
return;
}
return; // Always consume
// Fall through to editor handling for delete-char-forward when not empty
}
// Check all other app actions