Closed pilgrimlyieu closed 1 year ago
Excludes is really, really hard to get right I think. Extends is already supported, however it works on filetype basis and not on snippet files basis. Are you familiar with dotted filetypes? I use them all the time to extend the scope of my snippets and pull others in. So for example, you could have a filetype markdown_katex
with corresponding snippets and if you want to use it in a markdown file, you simply define the filetype to be markdown.markdown_katex
. Would that help you some?
Excludes is really, really hard to get right I think. Extends is already supported, however it works on filetype basis and not on snippet files basis. Are you familiar with dotted filetypes? I use them all the time to extend the scope of my snippets and pull others in. So for example, you could have a filetype
markdown_katex
with corresponding snippets and if you want to use it in a markdown file, you simply define the filetype to bemarkdown.markdown_katex
. Would that help you some?
Thanks. I have a basic understanding of dotted filetypes. I've tried to avoid using it before since I thought it seemed to mess up the filetype, and was inconvenient to change(That means, I have to change original filetype markdown
to something likes markdown.math
). However, I'll look into this feature and have a try. Thanks!
Expected behavior:
I would like to classify for my snippets. For example, I will have some snippets in
basic.snippets
for basicmarkdown
syntax, some snippets with different types for math syntax, and some snippets for specific cases. And my expected structure is like below.And I would like to use math snippets in
tex
filetype, and I hope we could have a way likes below to achieve this.Furthermore, the sub folder
katex
may not work intex
and I prefer to exclude them frommarkdown/math
, so I have a preference to useFor specific snippets file
I've read the documentation and searched the Internet, finding this seems haven't been achieved. As a result, I open this issue to make a feature request. Thanks anyway in advance!
Actual behavior:
Steps to reproduce
1. 2. 3.