I just tried that and it is replacing spaces with tabs now, but it replaces all leading spaces with one tab. I tried it on a line with 19 leading spaces, all of which were replaced with one tab. I have set the tab size to 1, 2, 3, etc., without any change in the outcome.
Anthony
On Dec 2, 2012, at 6:22 PM, Adam Sharp adsharp@me.com wrote:
On 02/12/2012, at 6:53 AM, Anthony V. Pulido anthony.pulido@gmail.com wrote:
I've set Tab size to 1 and tried other numbers, but each time I try step 3, I receive the same result. When I try Bundle > Source > Convert Spaces to Tabs, a couple of lines where the leading spaces have been selected from step 2 are left untouched, and another line's leading spaces are simply deleted and no tabs replace them. In case, I've made sure that the leading spaces are indeed spaces, and not tabs with a size of one space.
Specifically, two lines with one leading space are left untouched, and a line with two leading spaces had its spaces deleted.
Ok, I think it will probably be easier to just do it all from the find and replace dialogue. Set up the search as before, and with regex search/replace enabled it looks like you can put \t in the replace field and hit Replace All, and TM will insert literal tabs for you.
–Adam
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate