David Howden | 1 Feb 02:03
Picon
Gravatar

Re: [TM2] Auto-indentation

I don't think that it is possible to set this globally.


It is strange though.  The bundles that I have written all work correctly - I only seem to have problems with other peoples' bundles :-P

David.

On Tue, Jan 31, 2012 at 9:00 PM, Steve King <sking-rd7evPjynkNeoWH0uzbU5w@public.gmane.org> wrote:
On 2012-01-31 12:24, David Howden wrote:
I find that the main problems are with the "auto-correction" of indentation, you can disable this as follows:

+ Add a settings item to the bundle in question (make sure that the scope for the setting item is set correctly).
+ Add this dict to the settings:  { disableIndentCorrections = '1'; }

And there was much rejoicing!  Do you know if it's possible to do this globally instead of separately for each bundle?

--
Steve King
Sr. Software Engineer
Arbor Networks
+1 734 821 1461
www.arbornetworks.com <http://www.arbornetworks.com/>



_______________________________________________
textmate mailing list
textmate <at> lists.macromates.com
http://lists.macromates.com/listinfo/textmate


_______________________________________________
textmate mailing list
textmate@...
http://lists.macromates.com/listinfo/textmate
Rob McBroom | 1 Feb 04:57
Favicon

Re: [TM2] Auto-indentation

On Jan 31, 2012, at 4:00 PM, Steve King wrote:

>> + Add a settings item to the bundle in question (make sure that the scope for the setting item is set correctly).
>> + Add this dict to the settings:  { disableIndentCorrections = '1'; }
> 
> And there was much rejoicing!  Do you know if it's possible to do this globally instead of separately for
each bundle?

I think the answer’s right there on the first line. Create the settings in your personal bundle but
*don’t* provide a scope at all and it should apply everywhere. (I haven’t tested this.)

--

-- 
Rob McBroom
<http://www.skurfer.com/>

_______________________________________________
textmate mailing list
textmate@...
http://lists.macromates.com/listinfo/textmate

Picon

Re: TM2 very slow durning edits

On 30.01.12 23:17, Paul Benton wrote:
> [ *.{R, c, cpp, m, pl, rb, html, xml}]

Does that actually work this way? IMNSHO, spaces should be significant
here, and you probably did not mean the setting to apply to all files
named <something><dot><space>xml. (Then again, I also think spaces
should be significant for incremental search, maybe with a single space
standing for an arbitrary number of spaces, but it seems Allan thinks
otherwise.)

Christopher

_______________________________________________
textmate mailing list
textmate@...
http://lists.macromates.com/listinfo/textmate

Picon

Re: [TM2] About tabulations

On 31.01.12 19:42, Emmanuel Blot wrote:

> What are the rules about the tabulation settings? Is there some
> specific action(s) to do so that soft tabs are always on?

Put this into ~/.tm_properties:

softTabs = true

Christopher

_______________________________________________
textmate mailing list
textmate@...
http://lists.macromates.com/listinfo/textmate

nessur | 1 Feb 17:14
Picon

Re: TM2 very slow durning edits


I don't have any help to offer, just a '+1', me too. 

I've been using the Alpha since it came out, and just yesterday this started
happening to me. Typing a letter, invoking a Rails snippet, hitting save:
all make the beach ball spin. Each character typed takes between half a
second and a whole second to appear. 

I have a Core i7, with 4 cores, and no other processes consuming CPU.
Textmate, however, is jumping to 120% CPU utilization for common actions. 

Using TM2 Alpha build 8971. 

-Russen Guggemos 

Paul Benton wrote:
> 
> Dear all,
> 
> I'm just playing with the latex bundle and TM2. Every time I do anything 
> like edit text or save TM2 freezes and takes up one core on my machine. I 
> this due to 'attr.save-on-deactivate' ? 
> my .tm_properties file looks as follows:
> 
> #######
> PATH = 
> "/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/texbin:/usr/bin/local:/Library/Frameworks/GTK+.framework/Resources/bin"
> 
> [ *.{R, c, cpp, m, pl, rb, html, xml}]
> scopeAttributes = 'attr.save-on-deactivate'
> ######
> 
> Also quick 2nd question how do I get the compiled pdf to appear in a 
> separate window like TM1 instead of at the bottom of the window?
> 
> Cheers,
> 
> Paul
> 
> 
> _______________________________________________
> textmate mailing list
> textmate@...
> http://lists.macromates.com/listinfo/textmate
> 

--

-- 
View this message in context: http://old.nabble.com/TM2-very-slow-durning-edits-tp33232689p33244036.html
Sent from the textmate users mailing list archive at Nabble.com.

_______________________________________________
textmate mailing list
textmate@...
http://lists.macromates.com/listinfo/textmate

Picon
Favicon
Gravatar

Re: TM2 very slow durning edits

On 1 Feb 2012, at 16:14, nessur wrote:

> Typing a letter, invoking a Rails snippet, hitting save:
> all make the beach ball spin. Each character typed takes between half a
> second and a whole second to appear. 

I've noticed this too, though it normally happens for me when some deeply nested folder has auto expanded
(as if you'd alt+clicked it) in the file browser.

_______________________________________________
textmate mailing list
textmate@...
http://lists.macromates.com/listinfo/textmate

Ed Wong | 1 Feb 18:23

Re: TM2: strange indenting for C++

On 2012-01-31, at 4:38 pm, Steve King wrote:

> On 2012-01-25 04:00, Allan Odgaard wrote:
>> An example where this makes sense would be:
>> 
>>   if(true)
>>     while(false)
>>       for(size_t i = 0; i<  10; ++i)
>>         continue;
>>   return 0;
>> 
>> I don’t think TextMate 1.x is able to properly indent the above, but 2.0 will, even while you type it.
>> 
>> The downside of the line-based rule system is that breaking one statement across multiple lines is
effectively unsupported, since each fragment is matched against the patterns and will thus be wrongly
classified. I don’t know how this can be improved (other than do binary parsers for each language, but
even that is quite a challenge for languages like C++).
> 
> If it's a choice between supporting code like your example or supporting a single statement split across
lines, I say focus on the multi-line statement. Anyone who writes deeply nested C (or C-like) code without
braces needs to be whacked upside the head with a cluestick, not encouraged by their editor.
> 
> In fact, I'd pay ten times as much if TextMate could be made to deliver a high-voltage electric shock to
anyone who tried writing such an abomination!  Call it something catchy like InvisibleCodeFence and
you'll sell a million copies.
> 
> IMNSHO, of course. :-)

While it's cool that a language allows someone to write code like that - and I've done my fair share of it in the
past, I would also hate to be the next guy who needs to debug or edit it especially if the indentations get
fubar'd for whatever reason. Legibility rules especially once your prescription goes over -4 diopters.

Ed Wong

_______________________________________________
textmate mailing list
textmate@...
http://lists.macromates.com/listinfo/textmate

nessur | 1 Feb 20:01
Picon

Re: TM2 very slow durning edits


Yes! That totally happened. All my folders are expanded. Is there a way to
'Collapse All', to invert this action?

It seems hard set, the way that the folders stay open between TM closing and
opening.

-r

George McGinley Smith-2 wrote:
> 
> On 1 Feb 2012, at 16:14, nessur wrote:
> 
>> Typing a letter, invoking a Rails snippet, hitting save:
>> all make the beach ball spin. Each character typed takes between half a
>> second and a whole second to appear. 
> 
> I've noticed this too, though it normally happens for me when some deeply
> nested folder has auto expanded (as if you'd alt+clicked it) in the file
> browser.
> 
> _______________________________________________
> textmate mailing list
> textmate@...
> http://lists.macromates.com/listinfo/textmate
> 
> 

--

-- 
View this message in context: http://old.nabble.com/TM2-very-slow-durning-edits-tp33232689p33244746.html
Sent from the textmate users mailing list archive at Nabble.com.

_______________________________________________
textmate mailing list
textmate@...
http://lists.macromates.com/listinfo/textmate

Richa Avasthi | 2 Feb 00:56

Re: TM2: Wrap column not changed once new file is saved.

On Tuesday, January 31, 2012 at 12:04 AM, Allan Odgaard wrote:
> On 27/01/2012, at 08.25, ravasthi wrote:
>  
> > [ text.{haml,html} ]
>  
> Brace expansion is not supported for root scope selectors.

So how would I best do that? As two entirely separate declarations? Or could I do something like

[ text.haml, text.html ]

?
> > […] However, the wrap column setting is not respected when I'm creating a new file […] Should I open
this as a ticket instead? Please let me know.
>  
>  
> There are many issues with non-sticky settings, not re-reading settings when file types change, etc.
These are known problems.
Okay, thanks for letting me know.

Richa  

_______________________________________________
textmate mailing list
textmate <at> lists.macromates.com
http://lists.macromates.com/listinfo/textmate
Picon
Favicon
Gravatar

Re: TM2 very slow durning edits

On 1 Feb 2012, at 19:01, nessur wrote:

> Is there a way to 'Collapse All', to invert this action?

Absolutely, alt+click is a toggle to open/close all subdirectories, so if it has done that, just alt click
the highest level and it'll close 'em all up. I probably should have said that in the previous email...

_______________________________________________
textmate mailing list
textmate@...
http://lists.macromates.com/listinfo/textmate


Gmane