Skip to content

Instantly share code, notes, and snippets.

@Cphoenix
Last active July 17, 2016 09:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Cphoenix/4e907385f9cca8afc0bea1baf4426bc4 to your computer and use it in GitHub Desktop.
Save Cphoenix/4e907385f9cca8afc0bea1baf4426bc4 to your computer and use it in GitHub Desktop.
Atom Snippets for NetKAN Files
'.source.json':
'netkan-SD':
'prefix': 'nkSpaceDock'
'body': """{\n\t"spec_version" : "${1:v1.4}",\n\t"identifier" : "${2:<identifier>}",
\t"$kref" : "#/ckan/spacedock/${3:<sdid>}",\n\t"x_netkan_license_ok" : true,\n\t$6\n}$0"""
'netkan-GitHub':
'prefix': 'nkGitHub'
'body': """{
\t"spec_version" : "${1:1.4}",
\t"identifier" : "${2:<identifier>}",
\t"$kref" : "#/ckan/github/${3:<user>}/${4:<repo>}",
\t"name" : "${5:User-friendly name for the mod}",
\t"author" : "${6:author(s), can be array}",
\t"abstract" : "${7:A short description of what the mod does}",
\t"license" : "${8:CC-BY-4.0}",
\t"ksp_version" : "${9:1.1.2}",
\t"resources": {
\t"homepage": "${10:<url>}"
\t}
}$0"""
'netkan-identifier':
'prefix': 'ident'
'body': '{ "name" : "${1:modIdentifier}" },$0'
'netkan-depends':
'prefix': 'depend'
'body': '"depends" : [\n\t{ "name" : "${1:modIdentifier}" }\n],$0'
'netkan-recommends':
'prefix': 'recom'
'body': '"recommends" : [\n\t{ "name" : "${1:modIdentifier}" }\n],$0'
'netkan-suggests':
'prefix': 'suggests'
'body': '"suggests" : [\n\t{ "name" : "${1:modIdentifier}" }\n],$0'
'netkan-conflicts':
'prefix': 'conflicts'
'body': '"conflicts" : [\n\t{ "name" : "${1:modIdentifier}" }\n],$0'
'netkan-install':
'prefix': 'install'
'body': '"install" : [\n\t{\n\t\t"${1:find}" : "${2:folderToFind}",
\n\t\t"install_to" : "${3:GameData}" \n\t}\n],$0'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment