mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 22:03:45 +00:00
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:
parent
5ef79459dc
commit
81be81328c
5 changed files with 16 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue