Skip to content

Commit

Permalink
Merge pull request #2312 from carapace-sh/freeze-config
Browse files Browse the repository at this point in the history
freeze: added deefault config options
  • Loading branch information
rsteube authored Mar 28, 2024
2 parents d2e76ed + aee82e4 commit 328d4ee
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions completers/freeze_completer/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,15 @@ func init() {
rootCmd.Flags().Bool("window", false, "Display window controls")

carapace.Gen(rootCmd).FlagCompletion(carapace.ActionMap{
"background": color.ActionHexColors(),
"config": carapace.ActionFiles(),
"background": color.ActionHexColors(),
"config": carapace.Batch(
carapace.ActionFiles(),
carapace.ActionValuesDescribed(
"base", "Simple screenshot of code",
"full", "macOS-like screenshot",
"user", "Uses ~/.config/freeze/user.json",
).Tag("default configurations"),
).ToA(),
"execute": bridge.ActionCarapaceBin().Split(),
"font.family": os.ActionFontFamilies(),
"font.file": carapace.ActionFiles(),
Expand Down

0 comments on commit 328d4ee

Please sign in to comment.