hi
in my plugin, i call show_quick_panel , to show a C-Style Include paths, and want to click some path link (with a href=subl:command {args,value } ), to open some directory,
sublime.active_window().show_quick_panel(menu_items, on_done, sublime.KEEP_OPEN_ON_FOCUS_LOST)
now, only a command works fine,
but with args, will not work. with The Error Message shows
"Unable to parse command: brentdir {'path': '/usr/include' }"
please, help.
for x in res:
path = os.path.dirname(x)
args = ("{'path': '%s' }") % (path)
searchPath = ('Search Path: <a href=\"subl:brentdir %s\">%s</a>') % (args, path)
print(searchPath)
package = Read_Output("dpkg -S "+x,True)
if "no path" in package :
package = ""
else:
r = list( package.split() )
if len(r):
package = r[0].rstrip(":")
quick_panel_item = sublime.QuickPanelItem(
x,
[
str(searchPath),
],
package,
sublime.KIND_MARKUP,
)
menu_items.append(quick_panel_item)