def help_view(window=None):
"""
Find and return the help view for the provided window. If no window is
provided, the currently active window is checked instead.
The return value is the view on success or None if there is currently no
help view in the window.
"""
window = window if window is not None else sublime.active_window()
view = find_view(window, "HyperHelp")
if view is not None:
settings = view.settings()
if settings.has("_hh_package") and settings.has("_hh_file"):
return view
return None
评论列表
文章目录