From dc0abcb402af6862e2367795913d216040a82366 Mon Sep 17 00:00:00 2001 From: Terminal <32599364+TheSecEng@users.noreply.github.com> Date: Tue, 28 Apr 2020 08:15:33 -0400 Subject: [PATCH] remove: cmd and args (#83) * remove: cmd and args ST 4074+ no longer supports cmd or args * update: remove cmd and arg reference in docs --- docs/src/markdown/api.md | 2 -- st3/mdpopups/__init__.py | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/src/markdown/api.md b/docs/src/markdown/api.md index 9b2643e..164370d 100644 --- a/docs/src/markdown/api.md +++ b/docs/src/markdown/api.md @@ -436,8 +436,6 @@ MdPopups provides a number of accessible functions. `contents` | `#!py3 str` | | Markdown/HTML content for the popup. `md` | `#!py3 bool` | `#!py3 True` | Defines whether the content is Markdown and needs to be converted. `css` | `#!py3 str` | `#!py3 None` | Additional CSS that will be injected. - `cmd` | `#!py3 sublime_plugin.ApplicationCommand` | `#!py3 None` | `ApplicationCommand` to handle URL navigation. - `args` | `#!py3 dict` | `#!py3 None` | Arguments to pass to `cmd`. `flags` | `#!py3 int` | `#!py3 0` | Flags to pass down to the Sublime Text `new_html_sheet` call. `group` | `#1py3 int` | `#!py3 -1` | Specify window group. `wrapper_class` | `#!py3 str` | `#!py3 None` | A string containing the class name you wish wrap your content in. A `div` will be created with the given class. diff --git a/st3/mdpopups/__init__.py b/st3/mdpopups/__init__.py index 50e29bf..9f1e020 100644 --- a/st3/mdpopups/__init__.py +++ b/st3/mdpopups/__init__.py @@ -690,7 +690,7 @@ def query_phantoms(view, pids): if HTML_SHEET_SUPPORT: def new_html_sheet( - window, name, contents, md=True, css=None, cmd="", args=None, flags=0, group=-1, + window, name, contents, md=True, css=None, flags=0, group=-1, wrapper_class=None, template_vars=None, template_env_options=None, nl2br=False, allow_code_wrap=False ): @@ -707,7 +707,7 @@ def new_html_sheet( _log(traceback.format_exc()) html = IDK - return window.new_html_sheet(name, html, cmd, args, flags, group) + return window.new_html_sheet(name, html, flags, group) def update_html_sheet( sheet, contents, md=True, css=None, wrapper_class=None,