jonschlinkert / sublime-markdown-extended

Top 100 Sublime Text plugin! Markdown syntax highlighter for Sublime Text, with extended support for GFM fenced code blocks, with language-specific syntax highlighting. YAML Front Matter. Works with ST2/ST3. Goes great with Assemble.
https://github.com/jonschlinkert
MIT License
660 stars 96 forks source link

Add support for Sublime Text 3 Symbols #120

Closed simov closed 8 years ago

simov commented 8 years ago

Fixes #91

:wave: up until the introduction of the .sublime-syntax YAML difinition files I was using my own modified .tmLanguage file and the Sublime Symbols for Markdown headers were working (ctrl+R).

Right now I have your entire .sublime-syntax file copied in my config location:

~/.config/sublime-text-3/Packages$ tree Markdown
Markdown
└── Markdown Extended.sublime-syntax

Inside the Symbol List - Heading.tmPreferences there is a markup.heading.markdown scope used. That file is taken from [Sublime Text 3 Install Folder]/Packages/Markdown.sublime-package, no idea if it's needed in your package, because I don't have it installed from the Package Manager.

It works on my end because when using the same folder name Markdown as the Markdown.sublime-package Sublime just merges the settings from all locations.

You can easily test this - just create a markdown file with a couple of headers in it. The symbols are actually working better than the original Markdown definition, because for example bash comments (starting with #) are excluded :)

randy3k commented 8 years ago

Thanks @simov.

As I can see, It only shows heading.1. Perhaps, we should allow all headings: heading.1 to heading.6? Check pull-request-120, do you have any comments?

simov commented 8 years ago

Yep, all headers should be included in the symbol list, just checked how the default Markdown syntax definition behaves.

randy3k commented 8 years ago

Merged.