is there some sort of control over the symbol selector (dropdown on the lower right in files such as javascript that allow you to 'jump' to functions)?
Jamal Johnson asked:
is there some sort of control over the symbol selector (dropdown on the lower right in files such as javascript that allow you to 'jump' to functions)?
If I'm understanding what you're asking correctly you can just start entering the name of the symbol (eg, if the symbol is "verify_data" just type "v" then "e" etc until the required entry is selected).
But even better, just use shift-command-T to bring up a list of symbols and type in the resulting selection window.
Cheers, Paul
sorry for the confusion. i'm actually wondering how the 'symbols' are created / determined? basically, i don't use the very basic "function nameOf()" nomenclature for all my javascript and ONLY things formatted like that show up in the symbol list. so i'm wondering how i can configure textmate to show othery 'types' of symbols, such as:
CustomObject.prototype = Object.extend( (new SuperObject()), {
)}
and any other types of 'symbols' i'd like. thanx in advance...
On 11/29/05, Paul McCann paul.mccann@adelaide.edu.au wrote:
Jamal Johnson asked:
is there some sort of control over the symbol selector (dropdown on the lower right in files such as javascript that allow you to 'jump' to functions)?
If I'm understanding what you're asking correctly you can just start entering the name of the symbol (eg, if the symbol is "verify_data" just type "v" then "e" etc until the required entry is selected).
But even better, just use shift-command-T to bring up a list of symbols and type in the resulting selection window.
Cheers, Paul
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On Nov 29, 2005, at 9:03 AM, Jamal Johnson wrote:
sorry for the confusion. i'm actually wondering how the 'symbols' are created / determined? basically, i don't use the very basic "function nameOf()" nomenclature for all my javascript and ONLY things formatted like that show up in the symbol list. so i'm wondering how i can configure textmate to show othery 'types' of symbols, such as:
CustomObject.prototype = Object.extend( (new SuperObject()), {
)}
Have you looked at TmCodeBrowser? It's very easy to customize. http://www.cocoabits.com/TmCodeBrowser/
and any other types of 'symbols' i'd like. thanx in advance...
Haris
On 29/11/2005, at 16:03, Jamal Johnson wrote:
sorry for the confusion. i'm actually wondering how the 'symbols' are created / determined?
The language grammar assign names to the various elements in the language (see these by pressing ctrl-shift P with the caret on a language element).
Then a bundle preferences item (see Bundle Editor and hunt for the “Symbol List: …” items) will set the showInSymbolList to 1 and use a scope selector (which is like a CSS selector) to target which elements should have get setting (and thus be included).
So only stuff matched by the language grammar can be included in the pop-up. It is of course possible to change the language grammar to match more, but it sounds like you should first check the TmCodeBrowser plug-in suggested by Haris, which use ctags to collect the symbols.
i've taken a look and to be honest i'm terrible with regexp's and could use some help. i'm trying to define a way to see objects in a certain format in my JS files:
var CustomObject = Class.create(); CustomObject.prototype = Object.extend( (new ViewObject()), { member1 : true, member2 : "someString", member3 : "anotherString",
someFunction : function(){ //doSomething },
someOtherFunction : function(){
} };
so then in the tmCodeBrowser i'd see something like: Objects - CustomObject - member1 - member2 - member3 - someFunction - someOtherFunction etc....
something along those lines anyway. can one of you point me in a starting direction for howto setup the .ctags.tmcodebrowser file to do this for javascript files?
much thanx if you can!
On 11/29/05, Allan Odgaard throw-away-1@macromates.com wrote:
On 29/11/2005, at 16:03, Jamal Johnson wrote:
sorry for the confusion. i'm actually wondering how the 'symbols' are created / determined?
The language grammar assign names to the various elements in the language (see these by pressing ctrl-shift P with the caret on a language element).
Then a bundle preferences item (see Bundle Editor and hunt for the "Symbol List: …" items) will set the showInSymbolList to 1 and use a scope selector (which is like a CSS selector) to target which elements should have get setting (and thus be included).
So only stuff matched by the language grammar can be included in the pop-up. It is of course possible to change the language grammar to match more, but it sounds like you should first check the TmCodeBrowser plug-in suggested by Haris, which use ctags to collect the symbols.