From 71b50304061f5604952582aa1bf1fdeaa9107fd5 Mon Sep 17 00:00:00 2001 From: bereck-work Date: Fri, 21 Nov 2025 08:39:37 +0000 Subject: [PATCH] (Chore): Use of the new autocompleter here for paths/ --- internal/ui/extract.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/internal/ui/extract.go b/internal/ui/extract.go index ea95314..7365ef0 100644 --- a/internal/ui/extract.go +++ b/internal/ui/extract.go @@ -20,7 +20,7 @@ func RunExtractFlow() error { huh.NewGroup( huh.NewInput(). Title("📦 Archive Path"). - Description("Path to the archive file"). + Description("Path to the archive file - Tab for completions"). Placeholder("/path/to/archive.zip"). Value(&archivePath). Validate(func(s string) error { @@ -31,11 +31,12 @@ func RunExtractFlow() error { return fmt.Errorf("archive does not exist") } return nil - }), + }). + Suggestions(getArchiveCompletions("")), huh.NewInput(). Title("📂 Destination Path"). - Description("Where to extract files"). + Description("Where to extract files - Tab for completions"). Placeholder("/path/to/destination"). Value(&destPath). Validate(func(s string) error { @@ -43,7 +44,8 @@ func RunExtractFlow() error { return fmt.Errorf("destination path cannot be empty") } return nil - }), + }). + Suggestions(getDirCompletions("")), ), huh.NewGroup(