Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

generatedir

This is a plugin that auto generates a directory structure. You can use the json to define directory structure.

asciicast

Settings

let g:generate_template_dir = '/path/to/template'

Usage

sample.json

[
	{
		"name": "$root/$plugin.vim",
		"type": "dir",
		"children": [
			{
				"name": "plugin",
				"type": "dir",
				"children": [
					{
						"name": "$plugin.vim",
						"type": "file"
					}
				]
			},
			{
				"name": "autoload",
				"type": "dir",
				"children": [
					{
						"name": "$plugin.vim",
						"type": "file"
					}
				]
			},
			{
				"name": "syntax",
				"type": "dir",
				"children": [
					{
						"name": "$plugin.vim",
						"type": "file"
					}
				]
			},
			{
				"name": "doc",
				"type": "dir",
				"children": [
					{
						"name": "$plugin.txt",
						"type": "file"
					}
				]
			}
		]
	}
]
" generate directory using specified json
" argment's value will expand path like expand("~/")
:GenerateDir sample.json $root=$GOPATH/src/github.com/skanehira $plugin=gorilla

" generate directory using template.
" templates will display in popup window.
" when you press enter, you can input variables if you need input it.
:GenerateDirFromTemplate
vars $root=$GOPATH/src/github.com/skanehira $plugin=gorilla

About

Auto generate directory structure

Resources

Code of conduct

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages