-
Notifications
You must be signed in to change notification settings - Fork 643
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
for setext style headers the underline is displayed in the symbol list #158
Comments
I am aware of that. Unfortunately, capturing the header text for setext headers is not possible afaik. For this reason, instead of showing nothing, I preferred displaying the underlines to indicate there is a header there. |
But maybe we can put a fixed placeholder text instead of |
Well, I do not think it would help much placing a message instead of the underlines in the symbol list. I have looked into it a bit and even had partial success: had multi-line paragraphs show up as one line in the symbol list (modified So I feel it should be possible, but too hard for me to make it. |
It is not possible. For multiline blocks, Sublime Text offers only one way for capturing. It is this: you define a regex to capture the beginning and another regex to capture the end of the block. This way you can define the block. However, those regexes can be run against only a single line. To put it in another way, if you can define the beginning and the end regex for a setext header, I can help you with the rest. The second regex is easy: But the first one is not. If you think something like this: |
OK, I see now, thanks! At the time of trying I was unable to find any usable Sublime Text documentation on it, certainly not something with details you mentioned. Is TextMate's 12.2 Language Rules the ST documentation? I see any of these steps slightly forward:
But these are just slightly better than simply closing this issue, so closing is fine as well. |
That mostly applies to ST, too. However, I couldn't find the detail I mentioned (single-line only regex) there. When the docs doesn't cover things, trial and error is your friend. And don't forget to read the unofficial docs.
Underlines are better IMHO.
Done. |
Thank you for explaining all the details and your time! :)(BTW the |
Haha, you're creative with markdown :) It's in the v2.0.7 branch. Not merged yet. |
show up as underlines (
------------------------
) instead of the header text in symbol view (ctrl-p @
orctrl-r
)ST 2.0.2 (Linux), MarkdownEditing 2.0.6
The text was updated successfully, but these errors were encountered: