From 1312bf10c04b2e0722102a4ce5cda479df9c6009 Mon Sep 17 00:00:00 2001 From: Alexander Khodyrev Date: Tue, 26 Aug 2025 22:29:19 +0300 Subject: [PATCH 1/2] minor --- tui.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tui.go b/tui.go index ac58192..142ed93 100644 --- a/tui.go +++ b/tui.go @@ -69,6 +69,7 @@ func initialModel(config *Config, query string, verbose bool) model { l := list.New([]list.Item{}, delegate, width, 20) l.SetShowTitle(false) + l.SetShowHelp(false) l.SetShowStatusBar(false) l.SetFilteringEnabled(false) l.Title = "" // Set empty title @@ -85,7 +86,7 @@ func initialModel(config *Config, query string, verbose bool) model { query: query, verbose: verbose, loading: true, - status: "Initializing...", + status: "Querying", spinner: sp, list: l, } @@ -114,10 +115,7 @@ func (m model) Init() tea.Cmd { return tea.Batch( m.spinner.Tick, func() tea.Msg { - m.status = "Building prompt..." prompt := buildPrompt(m.config, m.query) - - m.status = "Querying LLM..." commands, err := queryLLM(m.config, prompt, m.verbose) if err != nil { return err From 51c8fed888b48c07c6906eca19f74452e05b1721 Mon Sep 17 00:00:00 2001 From: Alexander Khodyrev Date: Tue, 26 Aug 2025 22:45:56 +0300 Subject: [PATCH 2/2] fix option order for fish --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index d1f2a19..b5e4a7e 100644 --- a/main.go +++ b/main.go @@ -85,7 +85,7 @@ func main() { case "fish": fmt.Printf(`function _llm_shell_hint set -l LLM_SUGGESTION_FILE (mktemp) - llm-shell-hint %s query --output $LLM_SUGGESTION_FILE (commandline -b) + llm-shell-hint %s --output $LLM_SUGGESTION_FILE query (commandline -b) set -l LLM_SUGGESTION (cat $LLM_SUGGESTION_FILE) rm $LLM_SUGGESTION_FILE @@ -102,7 +102,7 @@ bind ctrl-q _llm_shell_hint case "bash": fmt.Printf(`_llm_shell_hint() { local suggestion_file=$(mktemp) - llm-shell-hint %s query --output "$suggestion_file" -- "$READLINE_LINE" + llm-shell-hint %s --output "$suggestion_file" query -- "$READLINE_LINE" local suggestion=$(<"$suggestion_file") rm "$suggestion_file"