id = "open" name = "open" description = "Opens files, folders, apps or URLs with the default application on macOS." executables = ["open"] platforms = ["macos"] [commands] format = 1 label = "Open with application" description = "Open files, folders or URLs, optionally with a chosen app." quality = "ai-draft" base = "fig:open" parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = false } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/open.ts" license = "MIT" [[commands.field]] id = "targets" label = "Files or URLs" type = "path" position = 0 multiple = true path = { kind = "any", role = "input" } sources = ["fig"] [[commands.field]] id = "app" label = "Application" type = "string" option = ["-a"] sources = ["fig"] [[commands.field]] id = "reveal" label = "Reveal in Finder" type = "boolean" option = ["-R"] sources = ["fig"] [[commands.field]] id = "text_edit" label = "Open in TextEdit" type = "boolean" option = ["-e"] sources = ["fig"] [[commands.field]] id = "new_instance" label = "New instance" type = "boolean" option = ["-n"] sources = ["fig"] [[commands.field]] id = "wait" label = "Wait until app exits" type = "boolean" option = ["-W"] sources = ["fig"] [[commands.field]] id = "background" label = "Do not bring to foreground" type = "boolean" option = ["-g"] sources = ["fig"] [[commands.field]] id = "hide" label = "Launch hidden" type = "boolean" option = ["-j"] sources = ["fig"] [[commands.task]] id = "default" label = "Open with default app" fields = ["targets"] required = ["targets"] [[commands.task]] id = "with-app" label = "Open with a chosen app" fields = ["targets", "app"] required = ["targets", "app"] [[commands.task]] id = "reveal" label = "Reveal in Finder" set = { reveal = [true] } lock = ["reveal"] fields = ["targets", "reveal"] required = ["targets"] [[commands.group]] id = "basic" label = "Basic" fields = ["targets", "app", "reveal"] [[commands.group]] id = "advanced" label = "Advanced" fields = ["text_edit", "new_instance", "wait", "background", "hide"]