From 09b5e0d08f58ff182f30b4d8c4b5a601ff14293d Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Thu, 26 Feb 2026 20:10:00 +0300 Subject: Enha: shell mode in filepickerdir --- tools.go | 1 + 1 file changed, 1 insertion(+) (limited to 'tools.go') diff --git a/tools.go b/tools.go index d3680e0..dc4ff21 100644 --- a/tools.go +++ b/tools.go @@ -714,6 +714,7 @@ func executeCommand(args map[string]string) []byte { ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second) defer cancel() cmd := exec.CommandContext(ctx, command, cmdArgs...) + cmd.Dir = cfg.FilePickerDir output, err := cmd.CombinedOutput() if err != nil { msg := fmt.Sprintf("command '%s' failed; error: %v; output: %s", command, err, string(output)) -- cgit v1.2.3