[TxMt] A new "Join Line With Next" macro

Ciarán Walsh ciawal at gmail.com
Wed Oct 18 10:00:22 UTC 2006


> This is brilliant! For me I always want space after comma, and
> frequently put it there myself after a Join Line.

I've reworked it a bit to fix a couple of small bugs and to add some
more characters.
Now the following sets will have a space added after a join line:
				&& || , : ; { )
and an opening brace gets a space before it.
So a few joins will change this:

	if (true &&
		test(1,
			0) ||
		foo
		)
	{
		// Code	
	}
	else
	{
		// Code
	}

Into this:

	if (true && test(1, 0) || foo)  {
		// Code	
	} else {
		// Code
	}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Join Line With Next (source).tmMacro
Type: application/octet-stream
Size: 1943 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20061018/2fcd9bfd/attachment.tmMacro>


More information about the textmate mailing list