Closed 23maverick23 closed 8 years ago
Thank you for your detailed issue! Hopefully this can be solved by just specifying a file extension and let ST do the matching. I'll give it a try today, but I don't want to get your hopes up because we might already have tried this.
I can try submitting a pull request for this. I think the only option is to require users to store the full path and then match against that.
On Friday, March 25, 2016, Federico Brigante notifications@github.com wrote:
Thank you for your detailed issue! Hopefully this can be solved by just specifying a file extension and let ST do the matching. I'll give it a try today, but I don't want to get your hopes up because we might already have tried this.
— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/Cacodaimon/GhostText-for-SublimeText/issues/59#issuecomment-201658052
Ryan Morrissey e: 23maverick23@gmail.com m: +1 857.225.1098 w: rymo.io
Thank you, but this is too complex, the solution I had suggested seems to work. I'll send a PR soon so @Cacodaimon can take a look since he knows GT-ST better.
Currently we create a tab and then figure out the syntax. My suggested solution is:
md
instead of Markdown.tmLanguage
)page title.md
instead of page title
)Let me know what you think @Cacodaimon
@bfred-it
Sorry I did not noticed the activity in the last days, I was too busy the last year :) , give me some time reading all the issues.
:tada: :grinning: Welcome back, I realized you were busy so I didn't ping you too much :P
@bfred-it
It seems to work and it is much lesser code. I like the solution!
First off - great plugin! Very helpful for some workflows I use at the office.
Overview:
When running GhostText on ST 3103, default syntaxes and host-specific syntaxes aren't working. It looks like you're using the
sublime.find_resources
method Utils.py#L131-L162, but doesn't this only search for files within installed packages (and not in standard packages)? Might be best to just have users specify the full syntax path of the.tmLanuage
file (e.g.Packages/Markdown/Markdown.tmLanguage
).If I manually type your syntax lookup code into the ST console, I'm returning an empty array:
If I just look for
.tmLanugage
resource files, I do get results (so thesublime.find_resources
method is working), but these are only from installed packages:Steps to Reproduce:
default_syntax
settings key toMarkdown.tmLanguage
Plain Text.tmLanguage
Console Output:
Sys Details: