From adef454a7d9f8bc79bfa6c8b4fbb2d47b61ba07f Mon Sep 17 00:00:00 2001 From: Daniel Gregoire Date: Wed, 24 Jul 2024 23:47:28 -0400 Subject: [PATCH] Improve CLI performance --- cmd/ari/input.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/cmd/ari/input.go b/cmd/ari/input.go index 9ab8b32..dd4069f 100644 --- a/cmd/ari/input.go +++ b/cmd/ari/input.go @@ -440,20 +440,15 @@ func (m candidate) DeleteLeft() int { return m.deleteLeft } // Bubbline -const cliDefaultReflowWidth = 80 - func cliEditorInitialize() *bubbline.Editor { editor := bubbline.New() editor.Placeholder = "" - editor.Reflow = func(x bool, y string, _ int) (bool, string, string) { - return editline.DefaultReflow(x, y, cliDefaultReflowWidth) - } historyFile := viper.GetString("history") if err := editor.LoadHistory(historyFile); err != nil { fmt.Fprintf(os.Stderr, "Failed to load history, error: %v\n", err) } editor.SetAutoSaveHistory(historyFile, true) - editor.SetDebugEnabled(true) + editor.SetDebugEnabled(false) editor.SetExternalEditorEnabled(true, "goal") return editor }