[TxMt] Padding for smart typing

Allan Odgaard allan at macromates.com
Sun Jun 5 17:39:25 UTC 2005


On Jun 5, 2005, at 19:29, Charilaos Skiadas wrote:

>> Not really sure what you have in mind here. You want the first  
>> space after the opening character to insert another space (before  
>> the closing character)?
> [...] So I type '\', and then '{', and now it looks like '\{}' ,  
> and I need to remember to add the other backslash in, otherwise  
> most of hell breaks loose. So it would be nice if TM recognized the  
> pair '\{' '\}' as a smart typing pair, also for deletion purposes.

I'm probably not going to touch the smart typing behavior, but I'll  
introduce the input patterns to better control what TM should do when  
given sequences are entered.

I haven't figured out how to let snippets simulate smart-typing 100%,  
but I'm more likely to expand these to be able to do that, than to  
try and make smart-typing do all the different things people request.

> On a similar note, maybe this is an RTFM, but suppose one wants to  
> insert only one parenthesis (for instance when typing the open- 
> closed interval of the real number line, '(0,1]'. Is there a key,  
> like esc or something, that would momentarily exit smart-typing  
> status?

Nope -- I doubt that pressing a key before e.g. ( is easier than  
pressing delete after the (. If you're having this problem with  
ranges only, you could make a snippet or similar for a range, and tie  
it to a key.




More information about the textmate mailing list