<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV><DIV>On Jan 31, 2007, at 9:51 AM, Rob McBroom wrote:</DIV><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">On Jan 31, 2007, at 12:50 AM, Garance A Drosehn wrote:</DIV><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">What I want is my tab-intent to be a soft-tab (using blanks) at 4</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">spaces, but I also want hard-tabs (using the actual tab character) to</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">be used for 8 spaces.<SPAN class="Apple-converted-space"> </SPAN>So, if I tab once I want four spaces, if I tab</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">twice then I want a single tab character, and with three tabs I want a</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">tab-character followed by four spaces.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV> </BLOCKQUOTE><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Someone will correct me if I'm wrong, but I don't think you can have TextMate do this for you just by altering settings.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">You could probably create a command that goes through your document and replaces 8 spaces with a tab character. To get even fancier, you could probably create a command that does this and saves the document and bind this command to ⌘S, so when you save the file, it gets formatted the way you want.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I'm not sure if TextMate will let you use Tab as a key equivalent for a command, but if so, you could make it even more automated (probably what you want) by having it do a search/replace on the current line every time you hit the Tab key. This might screw up the cursor position though.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">---</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Rob McBroom</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><<A href="http://www.skurfer.com/">http://www.skurfer.com/</A>></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I didn't "switch" to Apple... my OS did.</DIV></BLOCKQUOTE></DIV><BR><DIV>Ya. It's Tabs or spaces. no mixing.</DIV><DIV>Don't bother trying to write a tmCommand for this since you'd break snippet placer stuff and open up a whole can of trouble and pain for yourself.</DIV><DIV>I recommend using tabs at 4 and just using two of them in some places.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>If you already have documents that assume 4spaces + 8wide tabs, you can switch to using all tbs by setting it to use 8wide soft tabs(spaces), use the convert tabs to spaces action o convert all your 8 wide tabs to 8spaces, </DIV><DIV>then switch to hard tabs at 4width and convert spaces to tabs.</DIV><DIV><BR><DIV>thomas Aylott — <I>design</I><B>42</B> — <B>subtleGradient </B>— CrazyEgg</DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV></BODY></HTML>