I am working a lot with ikiwiki, which is a wiki compiler. Since I use the tagging feature a lot, I thought it would be a good idea, to have autocompletion for the tag directive via a completion file. The way sublime text 3 decides where to autocomplete stuff is via a scope selector, which means, that the specific scope has to be defined in a syntax file. I really like the features of the MarkdownEditing package though and so rely heavily on it. Thankfully there seemed to be a good starting point: the AcademicMarkdown package, which seems to be nothing more that a slightly adapted subset - theme, syntax, and so on - of what MarkdownEditing provides.
What I did was to fork the AcademicMarkdown package on github and create my own ikiwikiEditing package as a starting point of a package that includes e.g. scopes, etc. for ikiwikis own directives.
First I renamed all the files from AcademicMarkdown to ikiwikiEditing and made sure that anything in the files themselves was derivate from this new naming scheme.
With help of the PackageDev package, I converted the ikiwikiMarkdown.tmLanguage
file to YAML and added under patterns my pattern for the tag directive:
- comment: tags directive
name: tag.directives.ikiwiki
match: \[\[!tag.*?\]\]
Afterwards I converted the file back to json.
I made sure that AcademicMarkdown was removed from my ST3 config, since ikiwikiMarkdown had the same feature set (and more) and restarted ST to see if it would work.
Alas, it only kinda did. I could see that ST could identify the newly added scope correctly, so in theory I could start building up a completion file, but hereās the problem: If ikikiwikiEditing is used the color scheme of MarkdownEditing, or rather the enhanced one from AcademicMarkdown is simply ignored for all my markdown files! I checked the preferences for the plugin (which lives simply in packages/ikiwikiEditing/
btw.), the path for the ācolor_schemeā setting and everything else for hours yesterday but could not figure out the problem. I removed ikiwikiEditing from my path and reinstalled AcademicMarkdown and it worked like a charm. I am at a loss. I donāt know why it wouldnāt work or what I could check anymore, so I turn to you. Any help is appreciated and thanks in advance!