Skip to content

Instantly share code, notes, and snippets.

@gdm85
Last active November 13, 2016 07:43
Show Gist options
  • Save gdm85/450512fe14244905ea481d35703a47db to your computer and use it in GitHub Desktop.
Save gdm85/450512fe14244905ea481d35703a47db to your computer and use it in GitHub Desktop.
D-Lang IDE with Atom: config.cson
## main article: https://medium.com/@gdm85/atom-editor-building-with-f5-edc228034ec0
"*":
"atom-shell-commands":
commands: [
{
name: "make-project"
command: "make"
options:
cwd: "{ProjectDir}"
matchs: [
"^(?<file>[\\/0-9a-zA-Z\\._\\\\:]+)\\((?<line>\\d+),(?<col>\\d+)\\):"
]
},
{
name: "run-project"
command: "make"
arguments: [
"run"
]
options:
cwd: "{ProjectDir}"
matchs: [
"^(?<file>[\\/0-9a-zA-Z\\._\\\\:]+)\\((?<line>\\d+),(?<col>\\d+)\\):"
"^(?<file>[\\/0-9a-zA-Z\\._\\\\:]+):(?<line>\\d+)"
"^[^@]+@(?<file>[\\/0-9a-zA-Z\\._\\\\:]+)\\((?<line>\\d+)\\):"
]
},
{
name: "dfmt-run"
command: "sh"
arguments: [
"-c",
"dfmt --inplace '{FilePath}' && make run"
]
options:
cwd: "{ProjectDir}"
matchs: [
"^(?<file>[\\/0-9a-zA-Z\\._\\\\:]+)\\((?<line>\\d+),(?<col>\\d+)\\):"
"^(?<file>[\\/0-9a-zA-Z\\._\\\\:]+):(?<line>\\d+)"
"^[^@]+@(?<file>[\\/0-9a-zA-Z\\._\\\\:]+)\\((?<line>\\d+)\\):"
]
},
{
name: "dfmt-build"
command: "sh"
arguments: [
"-c",
"dfmt --inplace '{FilePath}' && make"
]
options:
cwd: "{ProjectDir}"
matchs: [
"^(?<file>[\\/0-9a-zA-Z\\._\\\\:]+)\\((?<line>\\d+),(?<col>\\d+)\\):"
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment