Allan Odgaard | 2 Jan 2011 20:31
Favicon

[SVN] Re: is {} special?

On 29 Dec 2010, at 22:20, Mads Hartmann Jensen wrote:

> When you type {} and hit enter in the middle it will insert two newline chars. I can't seem to find this
behavior in any of the bundles (text / source), would any of you happen to know how this is implemented? 

This functionality is hardcoded.

> I would like the same behavior for () 

It can be done by adding a special scope and then overload return to insert a snippet on return in that scope.

The PHP bundle does this if you press return here: ‘array(‸)’. Same with HTML between ‘<tags>‸</tags>’.

It’s a little intrusive though as it requires changes to the language grammar (to markup the punctuation).

_______________________________________________
textmate-dev mailing list
textmate-dev <at> lists.macromates.com
http://lists.macromates.com/listinfo/textmate-dev
Mads Hartmann Jensen | 3 Jan 2011 22:40
Picon
Gravatar

[SVN] Re: is {} special?

Thanks Allan, works like a charm. 
Mads Hartmann Jensen | 5 Jan 2011 00:18
Picon
Gravatar

[SVN] Is indentNextLinePattern broken?

Hey guys, 

The indentNextLinePattern doesn't seem to be working anymore in any bundles. Can anyone test if they have
the same issue? I'm using the newest version of textmate on snow leopard.
Allan Odgaard | 5 Jan 2011 00:42
Favicon

[SVN] Re: Is indentNextLinePattern broken?

On 5 Jan 2011, at 00:18, Mads Hartmann Jensen wrote:

> The indentNextLinePattern doesn't seem to be working anymore in any bundles. Can anyone test if they have
the same issue? I'm using the newest version of textmate on snow leopard.

This pattern is only used when you indent the selection (or use tab at the front of a line), not when typing “live”.

The reason for that is that the pattern can be negated by the content on that next line. For example in C, if we
type ‘if(…)↩{’ we would get:

    if(…)
        {‸

In the future we will however use the patterns “while typing” (though not as aggresively as e.g. emacs,
as the patterns can’t be 100% correct, so user need a way to manually override the indent).

_______________________________________________
textmate-dev mailing list
textmate-dev <at> lists.macromates.com
http://lists.macromates.com/listinfo/textmate-dev
Michael Sheets | 5 Jan 2011 09:15

[SVN] r11996 (C#)

Moved to https://github.com/wintermi/csharp-tmbundle

Changed:
D   trunk/Review/Bundles/C#.tmbundle/
Mads Hartmann Jensen | 5 Jan 2011 19:55
Picon
Gravatar

[SVN] Re: Is indentNextLinePattern broken?

Thanks for the explanation. 

Sounds cool. What is the timeframe on this. Textmate 2 or some update along the way?

Thanks,
Mads Hartmann
Fredrik Karlsson | 6 Jan 2011 15:20
Picon
Gravatar

[SVN] How do I just add a new empty file to my Tcl project?

Dear list,

Sorry for this silly question, but I have a Tcl project and just want
to add a non-existing file to it. If I use the "New file..." context
menu, I get no new file inserted into my project, whatever I do.

/Fredrik

--

-- 
"Life is like a trumpet - if you don't put anything into it, you don't
get anything out of it."
Allan Odgaard | 8 Jan 2011 22:01
Favicon

[SVN] r11997 (Support/bin)

Headings must now start with A-Z or 0-9.

The match was made so that they could actually start with spaces (since headings can contain spaces). This
would match XATTR_SHOWCOMPRESSION in removexattr(2).

Changed:
U   trunk/Support/bin/man2html
Paulo Jorge Lopes de Moura | 18 Jan 2011 03:44
Picon
Gravatar

[SVN] r11998 (Logtalk)

Added syntax coloring and auto-completion support for the ignore/1 predicate, now a built-in.

Changed:
U   trunk/Bundles/Logtalk.tmbundle/Preferences/Completions.plist
U   trunk/Bundles/Logtalk.tmbundle/Syntaxes/Logtalk.plist
Allan Odgaard | 24 Jan 2011 00:43
Favicon

[SVN] r11999 (Maven)

Moved to https://github.com/textmate/maven.tmbundle

Changed:
D   trunk/Bundles/Maven.tmbundle/

Gmane