Skip to content

Commit

Permalink
Merge pull request #2622 from munzirtaha/master
Browse files Browse the repository at this point in the history
Fix output path completion
  • Loading branch information
rsteube authored Dec 7, 2024
2 parents c346f9f + f36581c commit 2c2b805
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion completers/yt-dlp_completer/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ func init() {
"output": carapace.ActionCallback(func(c carapace.Context) carapace.Action {
index := strings.LastIndex(c.Value, "%(")
if index < 0 {
return carapace.ActionValues()
return carapace.ActionFiles()
}

prefix := c.Value[:index+2]
Expand All @@ -334,6 +334,7 @@ func init() {
}
return batch.Invoke(c).Merge().Prefix(prefix).ToA().NoSpace()
}),
"paths": carapace.ActionFiles(),
"print-to-file": carapace.ActionCallback(func(c carapace.Context) carapace.Action {
switch len(c.Parts) {
case 1:
Expand Down

0 comments on commit 2c2b805

Please sign in to comment.