[TxMt] Re: show in symbol list for R

Tim Bates timothy.c.bates at gmail.com
Thu Dec 5 16:18:07 UTC 2013


should 
comment.line.number-sign.block.R 
be 
comment.line.number-sign.block.r
??

On 5 Dec 2013, at 3:32 PM, Ross Ahmed <rossahmed at googlemail.com> wrote:

> Unfortunately not working, here’s what I’ve do
> 
> 1. Gone to bundles > edit bundles > R > settings
> 2. Created a new setting called "Symbol List: Block comments”
> 3. Inserted "comment.line.number-sign.block.R” into Scope Selector
> 4. Entered this in body of setting:
> {	showInSymbolList = 1;
> 	symbolTransformation = 's/(^# =+ *)(.*)([ =]+$)/#: $2/;';
> }
> 5. Tried it on # = this is a header
> 
> Any ideas what I’m doing wrong?
> 
> Thanks 
> Ross 
> 
> 
> On 05/12/2013 12:54, "Tim Bates" <timothy.c.bates at gmail.com> wrote:
> 
>> I have it set up in R so that block comments get captured as symbols.
>> Much easier navigating when they appear in the  ⌘⇧-T box!
>> 
>> e.g. here:
>> http://d.pr/i/VmQ6
>> 
>> It’s just this content
>> 
>> {	showInSymbolList = 1;
>> 	symbolTransformation = 's/(^# =+ *)(.*)([ =]+$)/#: $2/;';
>> }
>> 
>> 
>> In a SETTING item called "Symbol List: Block comments” which I gave scope
>> 
>> comment.line.number-sign.block.r
>> 
>> 
>> Do it with:
>> 
>>> On 5 Dec 2013, at 10:35 AM, Ross Ahmed <rossahmed at googlemail.com> wrote:
>>> In a .R file, I have a bunch of headers like this:
>>> 
>>> # this is a header
>>> -----------------------------------------------------------
>>> 
>>> How can I get these headers to show in symbol list and fold? I’ve tried
>>> changing the foldingStartMarker/foldingStopMarker line without success,
>>> and I cannot find the showInSymbolList line in the R language grammar.
>> 
>> 
>> _______________________________________________
>> textmate mailing list
>> textmate at lists.macromates.com
>> http://lists.macromates.com/listinfo/textmate
> 
> 
> 
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate



More information about the textmate mailing list