mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-19 12:04:08 +00:00
feat(tui): Editor now handles extended character input (e.g., umlauts) and updates key binding documentation
This commit is contained in:
parent
3932c5e04c
commit
c8dcf1cdae
2 changed files with 2 additions and 2 deletions
|
|
@ -115,7 +115,7 @@ editor.setAutocompleteProvider(provider);
|
||||||
|
|
||||||
**Key Bindings:**
|
**Key Bindings:**
|
||||||
- `Enter` - Submit
|
- `Enter` - Submit
|
||||||
- `Shift+Enter` or `Ctrl+Enter` - New line
|
- `Shift+Enter`, `Ctrl+Enter`, or `Alt+Enter` - New line (terminal-dependent, Alt+Enter most reliable)
|
||||||
- `Tab` - Autocomplete
|
- `Tab` - Autocomplete
|
||||||
- `Ctrl+K` - Delete line
|
- `Ctrl+K` - Delete line
|
||||||
- `Ctrl+A` / `Ctrl+E` - Line start/end
|
- `Ctrl+A` / `Ctrl+E` - Line start/end
|
||||||
|
|
|
||||||
|
|
@ -334,7 +334,7 @@ export class Editor implements Component {
|
||||||
this.moveCursor(0, -1);
|
this.moveCursor(0, -1);
|
||||||
}
|
}
|
||||||
// Regular characters (printable ASCII)
|
// Regular characters (printable ASCII)
|
||||||
else if (data.charCodeAt(0) >= 32 && data.charCodeAt(0) <= 126) {
|
else {
|
||||||
this.insertCharacter(data);
|
this.insertCharacter(data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue