minor updates

This commit is contained in:
Mathieu PATUREL
2017-01-08 14:26:25 +11:00
parent 30ac30082f
commit 0f0e53ff34
4 changed files with 7 additions and 5 deletions

View File

@ -34,7 +34,6 @@ class NewMarkdownLivePreviewCommand(sublime_plugin.ApplicationCommand):
md_view = self.window.open_file(file_name)
mdsettings = md_view.settings()
mdsettings.set(PREVIEW_ENABLED, True)
mdsettings.set(PREVIEW_ID, preview.id())
@ -42,6 +41,7 @@ class NewMarkdownLivePreviewCommand(sublime_plugin.ApplicationCommand):
return is_markdown_view(sublime.active_window().active_view())
class MarkdownLivePreviewListener(sublime_plugin.EventListener):
def on_modified(self, view):
if not is_markdown_view(view): # faster than getting the settings
return

View File

@ -10,6 +10,7 @@ Medium:
☐ use alt attribute for 404 error
☐ use MarkdownLivePreview syntax, so we can use syntax's settings
☐ listen for settings to change
☐ fix relative source
Long:
☐ fix #4 @high

View File

@ -51,4 +51,5 @@ It is possible to set your own css. But, be carefull, you have to respect [those
Some of the package add a command in the menus, others in the command palette, or other nowhere. None of those options are really good, especially the last one on ST3 because the packages are compressed. But, fortunately, there is plugin that exists and **will solve this problem** for us (and he has a really cute name, don't you think?): [ReadmePlease](https://packagecontrol.io/packages/ReadmePlease).
[markdown-extended]: https://packagecontrol.io/packages/Markdown

View File

@ -1,4 +1,4 @@
# DuckDuckGo - The Search engine you'll fall in love
# DuckDuckGo - The Search engine you'll fall in love dsfsdf
This is cool