[TxMt] tab emulation only at start of line

Allan Odgaard allan at macromates.com
Sat Nov 13 14:09:11 UTC 2004

On 12. Nov 2004, at 15:58, M Spreij wrote:

> Would it be possible to have tab-emulation only function at the start 
> of a line? Extremely few (if any) of the documents I edit directly 
> have a column layout (where tabs would be useful), I only really use 
> them for indentation.. and when editing regular text it'd be nice to 
> have backspace/delete only remove one space at the time.

I agree that tab emulation sucks for prose (for me generally when I 
accidentally do an extra space and want to delete it again, it may 
delete both spaces) -- though having it only work in the front of the 
line will probably not be good for code.

Would you ever need tab emulation in prose? cause if not, the solution 
could be to have tab emulation a file type specific setting.

I also could do a heuristic to catch the double-space problem, but I'm 
afraid that this wouldn't be without false positives, which would 
probably frustrate people using it for writing code.


More information about the textmate mailing list