Home Download Buy Blog Forum Support

More info in quick panel for Goto Def and Symbol in Project

More info in quick panel for Goto Def and Symbol in Project

Postby gregor.hoch on Fri Feb 01, 2013 10:12 pm

Hi,
the new features for goto definition and symbol in project are great but I don't really like the one-line quick panel. ST has one and two line quick panels. The second line can show additional information that is not used in the fuzzy match algorithm.
For goto definition, the second line could show the second line of the actual definition. That would be very useful information. For goto symbol in project, the second line could show the filename and line number of the symbol.

Here is an example:


Current quickpanel with three rows for goto def
this/is/the/folder/filename1.js:59
----------
this/is/the/folder/filename2.js:23
----------
second/filename3.js:23


I think it would be much more useful to get a two line quick panel, which also shows the first line of the actual definition. Here is an example for getting the definition of a function called 'getID'

Better quickpanel with three rows for goto def
this/is/the/folder/filename1.js:59
function getID(name, type, libraryID) {
----------
this/is/the/folder/filename2.js:23
Z.Search.prototype.getID = function(){
----------
second/filename3.js:23
function getID(idOrName) {




EDIT: It would also be nice when the quick panel for goto definition preselects the closest definition (the one that in the current file and closest in terms of line number).
gregor.hoch
 
Posts: 128
Joined: Sat Oct 01, 2011 7:54 pm

Re: More info in quick panel for Goto Def and Symbol in Project

Postby ruslanoid on Sat Feb 02, 2013 1:22 pm

+1 on your suggestion, gregor.hoch, and I would like to suggest perhaps adding the same rating like feature we have in the GoToAnything (Ctrl+P) which could give higher rating to possible results in the GoToDef based on proximity of the indexed symbol both in current file and maybe even current folder, and also rate higher symbols in currently open files, and give higher rating to symbols in recently used locations. Given all that, choosing the right option could be a breeze.
ruslanoid
 
Posts: 4
Joined: Tue Jan 29, 2013 11:16 am

Re: More info in quick panel for Goto Def and Symbol in Project

Postby freewizard on Sun Feb 17, 2013 7:59 am

+1 class name / file name / method signature are very helpful
using Sublime Text 3 dev in OS X 10.8
my ST packages: https://github.com/freewizard
freewizard
 
Posts: 36
Joined: Wed Feb 09, 2011 4:14 am


Return to General Discussion

Who is online

Users browsing this forum: danpyq, Yahoo [Bot] and 25 guests

cron