Project Manager for Sublime Text 3 . mirror of https://github.com/budRich/ProjectManager
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

28 lines
962 B

import sublime
import sublime_plugin
from . import __pkg_name__
class PmReadmeCommand(sublime_plugin.TextCommand):
def run(self, edit):
v = self.view.window().new_file()
v.set_name(__pkg_name__ + ': Readme')
v.settings().set('gutter', False)
v.insert(edit, 0, sublime.load_resource('Packages/' + __pkg_name__ + '/README.md'))
v.set_syntax_file('Packages/Markdown/Markdown.sublime-syntax')
v.set_read_only(True)
v.set_scratch(True)
class PmChangelogCommand(sublime_plugin.TextCommand):
def run(self, edit):
v = self.view.window().new_file()
v.set_name(__pkg_name__ + ': Changelog')
v.settings().set('gutter', False)
v.insert(edit, 0, sublime.load_resource('Packages/' + __pkg_name__ + '/CHANGELOG.md'))
v.set_syntax_file('Packages/Markdown/Markdown.sublime-syntax')
v.set_read_only(True)
v.set_scratch(True)