From 353f83a9c788410f36a670e6750bb4162fb8f440 Mon Sep 17 00:00:00 2001 From: Josh Yan Date: Tue, 21 May 2024 16:55:09 -0700 Subject: [PATCH] add Ctrl + W shortcut --- cmd/interactive.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/interactive.go b/cmd/interactive.go index f9157bd8..0a31efb5 100644 --- a/cmd/interactive.go +++ b/cmd/interactive.go @@ -138,6 +138,7 @@ func generateInteractive(cmd *cobra.Command, opts runOptions) error { fmt.Fprintln(os.Stderr, " Alt + f Move forward (right) one word") fmt.Fprintln(os.Stderr, " Ctrl + k Delete the sentence after the cursor") fmt.Fprintln(os.Stderr, " Ctrl + u Delete the sentence before the cursor") + fmt.Fprintln(os.Stderr, " Ctrl + w Delete the word before the cursor") fmt.Fprintln(os.Stderr, "") fmt.Fprintln(os.Stderr, " Ctrl + l Clear the screen") fmt.Fprintln(os.Stderr, " Ctrl + c Stop the model from responding")