Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

Make alt+backspace delete word (#1223)

Kevin Cao3cd07728f4f3
diff --git a/readline/readline.go b/readline/readline.go
index d3fcc5379..82b5351bb 100644
--- a/readline/readline.go
+++ b/readline/readline.go
@@ -145,6 +145,8 @@ func (i *Instance) Readline() (string, error) {
buf.MoveLeftWord()
case 'f':
buf.MoveRightWord()
+ case CharBackspace:
+ buf.DeleteWord()
case CharEscapeEx:
escex = true
}