id = "sublime-text"
name = "Sublime Text"
homepage = "https://www.sublimetext.com"
description = "A sophisticated text editor for code, markup and prose."
icon = "SimpleIcons:sublimetext"
executables = ["subl"]
[dotfiles]
paths = [
"~/Library/Application Support/Sublime Text/Packages/User/",
"~/.config/sublime-text/Packages/User/",
"%APPDATA%/Sublime Text/Packages/User/",
]
secret = []
[commands]
format = 1
label = "Open in Sublime Text"
description = "Open files or folders with subl. Window and focus behaviour are covered; safe mode and version flags are left out."
quality = "ai-draft"
base = "fig:subl"
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/subl.ts"
license = "MIT"
[[commands.field]]
id = "targets"
label = "Files or folders"
type = "path"
position = 0
multiple = true
path = { kind = "any", role = "input", must_exist = false }
sources = ["fig"]
[[commands.field]]
id = "new_window"
label = "New window"
type = "boolean"
option = ["--new-window", "-n"]
sources = ["fig"]
[[commands.field]]
id = "add"
label = "Add to current window"
type = "boolean"
option = ["--add", "-a"]
sources = ["fig"]
[[commands.field]]
id = "wait"
label = "Wait until closed"
type = "boolean"
option = ["--wait", "-w"]
sources = ["fig"]
[[commands.field]]
id = "background"
label = "Do not activate"
type = "boolean"
option = ["--background", "-b"]
sources = ["fig"]
[[commands.field]]
id = "stay"
label = "Stay activated"
type = "boolean"
option = ["--stay", "-s"]
sources = ["fig"]
[[commands.field]]
id = "project"
label = "Project file"
type = "path"
option = ["--project"]
path = { kind = "file", role = "input", must_exist = true }
sources = ["fig"]
[[commands.field]]
id = "launch_or_new"
label = "Launch or new window"
description = "Only open a new window if the application is already open."
type = "boolean"
option = ["--launch-or-new-window"]
sources = ["fig"]
[[commands.field]]
id = "command"
label = "Command"
type = "string"
option = ["--command"]
sources = ["fig"]
[[commands.task]]
id = "open"
label = "Open in new window"
set = { new_window = [true] }
fields = ["targets", "new_window"]
required = ["targets"]
[[commands.task]]
id = "add"
label = "Add folder to window"
set = { add = [true] }
lock = ["add"]
fields = ["targets", "add"]
required = ["targets"]
[[commands.task]]
id = "wait"
label = "Open and wait (editor for git)"
set = { wait = [true] }
lock = ["wait"]
fields = ["targets", "wait"]
required = ["targets"]
[[commands.group]]
id = "basic"
label = "Basic"
fields = ["targets", "new_window", "add", "wait"]
[[commands.group]]
id = "advanced"
label = "Advanced"
fields = ["background", "stay", "project", "launch_or_new", "command"]