Home Download Buy Blog Forum Support

Function ctrl-click

Function ctrl-click

Postby psyphen on Thu Nov 26, 2009 12:34 am

One feature I find very useful in some of the big text editors is when you ctrl-click a function call it will take you to the original function. Are there any plugins/plans to implement this?
psyphen
 
Posts: 4
Joined: Mon Nov 09, 2009 9:49 am

Re: Function ctrl-click

Postby vim on Thu Nov 26, 2009 5:40 am

you can try ctrl+R for function list in the current file. you can also try the CTags plugin but neither supports mouse click, since sublime doesn't allow binding to mouse buttons.
vim
 
Posts: 298
Joined: Tue May 27, 2008 6:51 pm

Re: Function ctrl-click

Postby psyphen on Fri Nov 27, 2009 8:09 am

Yeahhh, so I suppose a feature request for mouse binding in the API may be in order?
psyphen
 
Posts: 4
Joined: Mon Nov 09, 2009 9:49 am

Re: Function ctrl-click

Postby Seldaek on Thu Dec 10, 2009 9:39 am

I would add that while holding ctrl down, it would be nice if hovering a link would make it blue/underlined, and then you could obviously click to open it directly.

ctrl-click or F3 or whatever to "Open definition" would be awesome if it worked across files, it's really the only thing I miss from bigger IDEs for PHP development, but I can fully understand the complexity of the matter so I don't have too high hopes for now.
Seldaek
 
Posts: 27
Joined: Mon Oct 26, 2009 9:50 am

Re: Function ctrl-click

Postby willi297 on Tue Jan 19, 2010 6:18 pm

I have been using the Ctags plugin for some time now, and it works very well. I don't mind not having a mouse option for navigation. You just use ctrl+] to navigate to a definition and ctrl+[ to go back through the Ctags navigation stack. The only problem is that the Ctags plugin occasionally locks up when trying to navigate to a tag. Haven't figured out what is causing this to happen.
Greg Williams
Atomic Embedded, USA
http://atomicembedded.com
willi297
 
Posts: 121
Joined: Wed Nov 18, 2009 8:29 pm
Location: Grand Rapids, MI, USA

Re: Function ctrl-click

Postby willi297 on Fri Feb 05, 2010 6:06 pm

I've successfully added Ctags navigation to my context menu. Just open Context.sublime-menu in /Packages/Default and add the following:

<separator/>
<item caption="Find all occurrences" command="findAllUnder"/>
<item caption="Navigate to Definition" command="navigateToDefinition"/>
<item caption="Navigate Backwards" command="jumpBack"/>

These items are nice for case mangling too:

<separator/>
<item caption="Upper Case" command="upperCase"/>
<item caption="Lower Case" command="lowerCase"/>
<item caption="Swap Case" command="swapCase"/>
willi297
 
Posts: 121
Joined: Wed Nov 18, 2009 8:29 pm
Location: Grand Rapids, MI, USA


Return to Ideas and Feature Requests

Who is online

Users browsing this forum: No registered users and 2 guests