From e4e7c44c3c6a9648931f594b0a8266b761f09fd1 Mon Sep 17 00:00:00 2001 From: Mathieu PATUREL Date: Sun, 8 Jan 2017 13:51:50 +1100 Subject: [PATCH] clean unused variables/import --- MLPApi.py | 2 +- MarkdownLivePreview.py | 4 +--- sample.md | 1 + setting_names.py | 1 - 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/MLPApi.py b/MLPApi.py index 4dd9a5f..cd9d391 100644 --- a/MLPApi.py +++ b/MLPApi.py @@ -14,7 +14,7 @@ from .setting_names import * __folder__ = os.path.dirname(__file__) STYLE_FILE = os.path.join(os.path.dirname(__folder__), 'User', - 'MarkdownLivePreview.css') + 'MarkdownLivePreview.css') def plugin_loaded(): diff --git a/MarkdownLivePreview.py b/MarkdownLivePreview.py index 0b2e443..d8a3e24 100644 --- a/MarkdownLivePreview.py +++ b/MarkdownLivePreview.py @@ -1,7 +1,5 @@ # -*- encoding: utf-8 -*- -import sys -import os.path import sublime import sublime_plugin @@ -31,7 +29,7 @@ class NewMarkdownLivePreviewCommand(sublime_plugin.ApplicationCommand): }) self.window.focus_group(1) preview = create_preview(self.window, current_view) - + self.window.focus_group(0) md_view = self.window.open_file(file_name) mdsettings = md_view.settings() diff --git a/sample.md b/sample.md index 8fc2362..f15827a 100644 --- a/sample.md +++ b/sample.md @@ -10,3 +10,4 @@ Hope you'll enjoy using MarkdownLivePreview! [GitHub](https://octodex.github.com/images/jetpacktocat.png) +this is a test \ No newline at end of file diff --git a/setting_names.py b/setting_names.py index 81d0c2f..5672b6d 100644 --- a/setting_names.py +++ b/setting_names.py @@ -5,5 +5,4 @@ PREVIEW_ID = 'markdown_live_preview_id' IS_PREVIEW = 'is_markdown_live_preview' IS_HIDDEN = 'is_hidden_markdown_live_preview' MD_VIEW_ID = 'markdown_live_preview_md_id' -JUST_CREATED = 'markdown_live_preview_just_created' PREVIEW_WINDOW = 'markdown_live_preview_window'