-
Notifications
You must be signed in to change notification settings - Fork 649
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
GFM Improvements #94
GFM Improvements #94
Conversation
This will allow to grey out tags and make the content explicit (with black color).
Extra commas are there for a workaround of ST parsing bug. Without them, ST can't parse multiline scope list correctly.
This feature will be moved to a new syntax file spesific to GFM.
They were the same with the native Markdown plugin's UUDs
Symbol list is a quick TOC of the markdown document. Sublime Text syntax definition files doesn't allow to parse setext syle headers (`====` or `-----`). This makes symbol list non-reliable. This commit makes a workaround. Instead of showing nothing about setext style headers in the symbol list, it shows `====` or `------` part of it. `-----` is displayed indented like `## ` header.
Credit goes to https://github.com/aziz/knockdown. Code is improved a bit.
Any reason we don't just make this part of the default Markdown settings? I don't see it conflicting with existing stuff and anyone using fenced code blocks isn't going to mind highlighting. This is really good stuff… |
Thanks. GFM doesn't change much things, mostly add new things. "anyone using fenced code blocks isn't going to mind highlighting" approach applies to "anyone using GFM isn't going to mind highlighting", too. So this means we can just remove |
I think maybe we rename Markdown_GFM to Markdown, and Markdown to Markdown_noGFM or something, just to make it easy and avoid having people’s default syntaxes change. It also avoids issues where people who have their own syntax file extension settings that would make them miss the new features and never know it. |
Good point. I agree. I'll add a new commit to PR in minutes. |
`Markdown.tmLanguage` -> `Markdown (Standard).tmLanguage` `Markdown GFM.tmLanguage` -> `Markdown.tmLanguage` Diff looks terrible, don't mind it.
Weird. It still doesn't work. I'm trying on a freshly installed ST 3. Do you have time to try it? |
Probably not tonight, but I’ll try to test in the morning. |
Ok. It seems the problem is with the native package. When I disable it, it works. Our |
I guess I've found the reason. ST matches I hope you can find a way. Otherwise, I guess we will have to write a small script that will run once on plugin update and disable the native plugin. |
Last commit is an improvement but still doesn't solve the issue. |
I guess they are too similar.
I think you forgot to reflect syntax files renaming into the readme: readme still references (GFM) syntax file. |
Shorcut is changed, too. So, when a text is selected and <kbd>~</kbd> is pressed, text will be surrounded with `~~` instead of `<del>` tag.
Option names are prefixed with `me_`, abbr of "Markdown Editing".
So everything is a tone lighter. Colors are calculated mathematically.
It is optional in GFM.
How is it going? Are we ready to push the update to users? |
Sorry, been a busier weekend than I expected. I'm sure it's all good, |
Ok. I've locally created 14 more commits on a branch To give a clue, I've implemented an iA Writer feature: keeping current line always vertically centered. |
Using Ctrl+B and Ctrl+I directly is not a bad idea if restricted only to markdown. It makes things simpler. I can't see any side effect. OTOH, when a user makes a text bold, the next thing he will do is most of the time moving the cursor to the right of the bold text. This commit implements this. So there is no need of extra key strokes like `right arrow` or `end` keys. We need to keep the user focused on the text, not the key presses. This commit also makes it possible to make a _word_ bold/italic without selecting it. Just move the cursor to the word (at the beginning, in the middle or at the and) and press <kbd>Ctrl</kbd> <kbd>B/I</kbd>. Voila! This makes this scenario possible: * type a word * press <kbd>Ctrl</kbd> <kbd>B</kbd> to make it bold * type space * type next word This means no extra key strokes like <kbd>Left</kbd>, <kbd>Right</kbd>, <kbd>End</kbd>, <kbd>Tab</kbd>. Only relevant key strokes.
It causes some conflicts and doesn't have any improvements over MarkdownEditing plugin.
It was a bad idea :(
It's OK. I've completed my Some notes:
Feedback is always welcome. Happy Markdown! |
I'm planning to create a message file for the update. So users would know what has changed. I've 2 questions:
|
1. It wont re-apply bold/italic if it already is. 2. It will convert to italic with Ctrl+I even if it is bold at that moment and vice versa.
Background color is inspired from the PlainTasks plugin.
I've created a yellow theme. Here is the screenshot: Its background color is inspired from the https://github.com/aziz/PlainTasks plugin. The rest is autogenerated by applying a yellow filter to the original grey theme. |
any idea when this pull request could be merged? |
I was excited, too. But the author looks really really busy. Btw, when he has some time, he will transfer this repository to this organization: https://github.com/SublimeText-Markdown. At least this is what he said 11 days ago. I think an organization would be more productive. This PR is 23 days old, that's too much. |
Welcome back @ttscoff. It's nice to see you :) I've prepared the plugin for the update and sent a pull request to the Package Control for the URL update. |
Yeah, I've been working 13-15 hour days for a week and a half now. That sprint has cleared up, should be able to help out a little more now, but thanks for taking the reigns. Glad it's moving forward. |
You guys are awesome! Thanks for the work! |
Update is online now. |
This branch includes further improvements to PR #93. They are about GitHub flavored Markdown and many other details.
Inner highlighting of fenced code blocks implemented. Credit goes to https://github.com/aziz/knockdown/ Screenshot:
Fixes #12, #90, #91, #92