[TxMt] Text width control

Afternoon afternoon at uk2.net
Sun Mar 26 15:23:41 UTC 2006


On 26 Mar 2006, at 9:57, Allan Odgaard wrote:

> So exactly like soft wrap, but with the “on disk” representation  
> having the returns ;)

Yes, except correctly indented as well.

A more general system would be to allow control of wrap indentation:

	[   ] Indent soft wrapped lines to match parent
	Add n tabs to soft wrapped lines [ 2            ]
	[   ] Don't soft wrap, hard wrap

This would cover my style and Oliver Taylor's too, I think (apologies  
if I haven't understood).

 From an implementation point of view, the soft wrapping version  
implicitly knows about the blocks, they're still lines, it's just  
drawing them differently. With hard wraps, the only suggestion I have  
is a crappy one, infer the blocks from knowledge about how the user  
likes the wrapping done. E.g. if I say indent subsequent lines by 2  
tabs then everything 2 tabs from the line above in is a child. This  
only works if the indentation is 2 tabs or greater though, because 0  
tabs, 1 tab and negative values would result in the entire document  
becoming a false positive in most cases.

Hmm.

________________________________
We're cycling through Cambodia to raise money for Oxfam, help us  
raise £5,200!
http://cambodiachallenge.org/







More information about the textmate mailing list