Home Download Buy Blog Forum Support

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

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

Postby k014 on Mon Oct 08, 2012 1:46 pm

suposse i have this code:

Code: Select all
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?
k014
 
Posts: 4
Joined: Mon Oct 08, 2012 1:44 pm

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

Postby bizoo on Mon Oct 08, 2012 2:50 pm

bizoo
 
Posts: 886
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

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

Postby k014 on Mon Oct 08, 2012 3:02 pm

thanks!

github?, i can help :)
k014
 
Posts: 4
Joined: Mon Oct 08, 2012 1:44 pm

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

Postby bizoo on Mon Oct 08, 2012 3:08 pm

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)
bizoo
 
Posts: 886
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

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

Postby k014 on Mon Oct 08, 2012 3:14 pm

bizoo wrote: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)

thanks, but i could not find any GotoSelection repo in package control.... there is a GotoFile... is that?
k014
 
Posts: 4
Joined: Mon Oct 08, 2012 1:44 pm

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

Postby bizoo on Mon Oct 08, 2012 3:24 pm

Nope.
You have to add the url from my post to your ST2 using the Add Repository command.
Only after you can install it.
bizoo
 
Posts: 886
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

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

Postby k014 on Mon Oct 08, 2012 3:41 pm

how to make ST2 read this file?

https://github.com/bizoo/GotoSelection/ ... ime-keymap

command is not working on Mac OSX
k014
 
Posts: 4
Joined: Mon Oct 08, 2012 1:44 pm

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

Postby bizoo on Mon Oct 08, 2012 4:52 pm

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.
bizoo
 
Posts: 886
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 18 guests