Procházet zdrojové kódy

Merge pull request #4566 from ollama/jyan/shortcuts

add Ctrl + W shortcut
Josh před 11 měsíci
rodič
revize
9f18b88a06
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1 0
      cmd/interactive.go

+ 1 - 0
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")