Open universemaster opened 1 year ago
Would this issue be solved by the feature proposed here? This way you could name your files however you want and use the main language file to include the relevant snippets.
@draivin , yes, that would work well!
Many of the
.hsnips
files shared publicly on github are very long and with many different types of functionality.I would like to seperate my
.hsnips
into categories such as:Currently hsnips allows one file per language:
My feature request is to allow multiple files per language to facilitate sharing of hsnips files separated by functionality.
I possible way to achieve allow multiple files by language is to allow globbing of file names like this:
Then, we would be able to create and share
.hsnips
files with file names that indicate the functionality. If globals from a different file are used, maybe the author should leave a comment to direct someone else to also use the other file?The extension and repository could also list good files, or suggest that people search github like this.
I don't have time right now to do a pull request for this, but I suspect for someone familiar with the code base it won't be too difficult?