Skip to content

Instantly share code, notes, and snippets.

@gdm85 gdm85/config.cson
Last active Nov 13, 2016

Embed
What would you like to do?
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
You can’t perform that action at this time.