Skip to content

Commit

Permalink
Fix output path completion
Browse files Browse the repository at this point in the history
  • Loading branch information
munzirtaha authored Dec 7, 2024
1 parent c346f9f commit f36581c
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 f36581c

Please sign in to comment.