feat: remove InsertChar action and inline character handling; streamline input processing and autocomplete triggers

This commit is contained in:
asepharyana
2026-07-12 12:02:45 +07:00
parent ac99835eb4
commit 55bcfda0d6
5 changed files with 16 additions and 22 deletions
-5
View File
@@ -40,7 +40,6 @@ pub enum Action {
ForceQuit,
SwitchMode(ModeKind),
SubmitInput(String),
InsertChar(char),
DeleteChar,
DeleteCharRight,
CursorLeft,
@@ -136,10 +135,6 @@ pub fn apply_action(state: &mut AppStateRest, action: Action) {
spawn_turn(state);
state.dirty = true;
}
Action::InsertChar(c) => {
state.input.insert(c);
state.dirty = true;
}
Action::DeleteChar => {
state.input.delete_left();
state.dirty = true;