id = "coteditor"
name = "CotEditor"
homepage = "https://coteditor.com"
description = "Lightweight Plain Text Editor for macOS."
icon = "https://coteditor.com/img/appicon/128@2x.png"
executables = ["cot"]
platforms = ["macos"]
[dotfiles]
paths = [
"~/Library/Containers/com.coteditor.CotEditor/Data/Library/Application Support/CotEditor/",
"~/Library/Containers/com.coteditor.CotEditor/Data/Library/Preferences/com.coteditor.CotEditor.plist",
]
secret = []
[commands]
format = 1
label = "Open in CotEditor"
description = "Open files in CotEditor, optionally at a line and column, or create a blank document."
quality = "ai-draft"
base = "fig:cot"
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/cot.ts"
license = "MIT"
[[commands.field]]
id = "files"
label = "Files"
type = "path"
position = 0
multiple = true
path = { kind = "file", role = "input" }
sources = ["fig"]
[[commands.field]]
id = "line"
label = "Line"
description = "Jump to a specific line in the opened document."
type = "integer"
option = ["--line", "-l"]
sources = ["fig"]
[[commands.field]]
id = "column"
label = "Column"
description = "Jump to a specific column in the opened document."
type = "integer"
option = ["--column", "-c"]
sources = ["fig"]
[[commands.field]]
id = "wait"
label = "Wait until closed"
type = "boolean"
option = ["--wait", "-w"]
sources = ["fig"]
[[commands.field]]
id = "background"
label = "Keep in background"
description = "Do not bring the application to the foreground."
type = "boolean"
option = ["--background", "-g"]
sources = ["fig"]
[[commands.field]]
id = "new"
label = "New blank document"
type = "boolean"
option = ["--new", "-n"]
sources = ["fig"]
[[commands.task]]
id = "open"
label = "Open files"
fields = ["files", "line", "column", "wait", "background"]
required = ["files"]
[[commands.task]]
id = "new"
label = "New document"
set = { new = [true] }
fields = ["new", "background"]
required = []
[[commands.group]]
id = "basic"
label = "Basic"
fields = ["files", "line", "column", "new"]
[[commands.group]]
id = "advanced"
label = "Behavior"
fields = ["wait", "background"]