Skip to content

Commit

Permalink
remove: cmd and args (#83)
Browse files Browse the repository at this point in the history
* remove: cmd and args

ST 4074+ no longer supports cmd or args

* update: remove cmd and arg reference in docs
  • Loading branch information
TerminalFi authored Apr 28, 2020
1 parent 913f39b commit dc0abcb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions docs/src/markdown/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions st3/mdpopups/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
):
Expand All @@ -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,
Expand Down

0 comments on commit dc0abcb

Please sign in to comment.