Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I configure Textmate2 to turn off Soft Wrap by default for all files?

Tags:

textmate2

I put a .tm_properties file in my home folder and also at the top of my source tree with the following in it, none of the versions had any effect.

softWrap = false
softWrap = :false
softWrap=false

Also with no effect, I put the line below section headers such as:

[ source ]
[ text ]
[ "*.*" ]

Would love to know what I'm missing here.

like image 613
BillSaysThis Avatar asked Feb 03 '12 23:02

BillSaysThis


1 Answers

I have the following entry below and it work just fine. Try removing other file type specific configuration to ensure its not being overridden.

softWrap         = false

Also do check the "global" defaults under

TextMate.app/Contents/Resources/Default.tmProperties

If you haven't already seen https://gist.github.com/1478685, do check it out. The tm_properties in your most immediate folder should take priority. So try and remove other setting and just test it with this one.

Alternatively, remove all other tm_properties and just leave the "global" one and test it out.

Finally do check out this discussion and the version of TM2 you are using. There have been certain fixes to softwarp, and it could just be a bug that you are facing.

EDIT

Also just FYI, I found this item in the latest release notes of TM2.(2012-02-18)

  • Cached .tm_properties files are now observed via kevent so changes invalidate the cache immediately (previously it could take up to 30 seconds before the updated file was read). On file systems without kevent support you need to relaunch TextMate to flush the cache.
like image 72
jake Avatar answered Nov 10 '22 08:11

jake