Skip to content

Instantly share code, notes, and snippets.

@jiz4oh
Last active July 25, 2024 07:11
Show Gist options
  • Save jiz4oh/d763f906c65e302b0162a3c05723138b to your computer and use it in GitHub Desktop.
Save jiz4oh/d763f906c65e302b0162a3c05723138b to your computer and use it in GitHub Desktop.
A .projections.json collection. Mostly used by [vim-projectionist](https://github.com/tpope/vim-projectionist)
{
"*.go": {
"alternate": "{}_test.go"
},
"*_test.go": {
"alternate": "{gotest}.go"
},
"go.mod": {
"type": "lib",
"alternate": "go.sum",
"dispatch": "go mod tidy"
},
"go.sum": {
"alternate": "go.mod",
"dispatch": "go mod tidy"
}
}
" https://helm.sh/docs/topics/charts/
{
"templates/*.yaml": {
"make": "helm",
"dispatch": "helm template %:s/.*/\=projectionist#path()/"
},
"values.yaml": {
"make": "helm",
"dispatch": "helm template %:s/.*/\=projectionist#path()/"
}
}
{
"scaffolds/*.md": {
"type": "scaffold"
},
"source/_posts/*.md": {
"type": "post"
},
"source/_drafts/*.md": {
"type": "draft"
},
"_config.yml": {
"type": "config"
},
"*": {
"make": "hexo",
"start": "hexo server"
}
}
{
"*": {
"console": "node"
},
"package.json": {
"type": "lib",
"alternate": [
"pnpm-lock.yaml",
"yarn.lock",
"package-lock.json"
]
},
"package-lock.json": {
"dispatch": "npm install",
"alternate": "package.json",
"start": "npm run start"
},
"yarn.lock": {
"dispatch": "yarn install",
"alternate": "package.json",
"start": "yarn run start"
},
"pnpm-lock.yaml": {
"dispatch": "pnpm install",
"alternate": "package.json",
"start": "pnpm run start"
}
}
{
"*.py": {
"console": "python",
"dispatch": "python %:p:S"
},
"requirements.txt": {
"make": "pip",
"dispatch": "pip install -r %"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment