Sublime Forum

There is a way to open a file using the selected word?

#1

suposse i have this code:

var a = new SuperCar();

I doble click ā€œSuperCarā€ to select it, and then press some keys to open the open goto anything panel (control+p), to open any file with the selected word

is this possible?

0 Likes

#2

https://github.com/bizoo/GotoSelection
But need some docsā€¦

0 Likes

#3

thanks!

github?, i can help :smile:

0 Likes

#4

Note that you can use the Add Repository command of Package Control to add it to your ST2 (http://wbond.net/sublime_packages/package_control/usage)

0 Likes

#5

thanks, but i could not find any GotoSelection repo in package controlā€¦ there is a GotoFileā€¦ is that?

0 Likes

#6

Nope.
You have to add the url from my post to your ST2 using the Add Repository command.
Only after you can install it.

0 Likes

#7

how to make ST2 read this file?

github.com/bizoo/GotoSelection/ ā€¦ ime-keymap

command is not working on Mac OSX

0 Likes

#8

You canā€™t.
I donā€™t like default keybindings, sooner or later they conflict with another one.
So you have to cut and paste the content of the example to your own ā€œDefault (OS).sublime-keymapā€.
And change the shortcut to whatever you prefer.

0 Likes