Sublime Forum

Ctrl+Click works for code but doesn't for comments and strings

#1

Hello!

I have mousemap:
{“modifiers”: [“ctrl”], “button”: “button1”,
“command”: “sublime_jedi_goto”,
“press_command”: “drag_select”}

And soucre code like:
myfunc(“myfunc2”) # myfunc3

so when I click myfunc then plugin SublimeJediGoto is called, but if I click myfunc2 or myfunc3, SublimeJediGoto is not called, how to make it possible?

Thanks.

0 Likes

#2

Are you sure that is is not called? It might just not do anything for tokens that aren’t functions. You can confirm this by running sublime.log_commands(True) in the console and then repeating your actions.

0 Likes

#3

it works, I used class-mixin with visible==False

0 Likes