Sublime Forum

Open URL - how to set a key shortcut?

#1

image
I don’t know how to create a shortcut to open the current line (an url).
I mean: i see the keymap files but i don’t know what command it is.

Thanks

0 Likes

#2

It triggers a view command

open_context_url {"event": {"x": 454.5, "y": 116.5}}

which requires the mouse cordinate as the argument.


I am not sure whether your request is feasible but if it’s not, there is still https://packagecontrol.io/packages/OpenUri for you.


As a bonus, to see what command is triggered, run sublime.log_commands(True) in the console. All triggered commands and theirs arguments will be shown in the console sicne then.

1 Like