Forgive me if this has been posted before, but I noticed a problem with TM2's implementation of the wrap column.
In my ~/.tm_properties file, I have:
# File type specific configuration # [ text ] softWrap = true
[ text.{haml,html} ] wrapColumn = 100
[ text.plain ] wrapColumn = 80
And for the most part, TM2 respects this.
However, the wrap column setting is not respected when I'm creating a new file:
When I create a new file, its type is text.plain by default, and the wrap column is 80. This is fine. But then say I save it as an HTML file. I expect that the wrap column should now move to 100, because the type of the file has changed to text.html. TM2 does not do that. Instead, to see the wrap column properly set, I have to close and reopen the file.
Should I open this as a ticket instead? Please let me know.
Thanks,
Richa
On 27/01/2012, at 08.25, ravasthi wrote:
[ text.{haml,html} ]
Brace expansion is not supported for root scope selectors.
[…] However, the wrap column setting is not respected when I'm creating a new file […] Should I open this as a ticket instead? Please let me know.
There are many issues with non-sticky settings, not re-reading settings when file types change, etc. These are known problems.
On Tuesday, January 31, 2012 at 12:04 AM, Allan Odgaard wrote:
On 27/01/2012, at 08.25, ravasthi wrote:
[ text.{haml,html} ]
Brace expansion is not supported for root scope selectors.
So how would I best do that? As two entirely separate declarations? Or could I do something like
[ text.haml, text.html ]
?
[…] However, the wrap column setting is not respected when I'm creating a new file […] Should I open this as a ticket instead? Please let me know.
There are many issues with non-sticky settings, not re-reading settings when file types change, etc. These are known problems.
Okay, thanks for letting me know.
Richa
On 02/02/2012, at 06.56, Richa Avasthi wrote:
On Tuesday, January 31, 2012 at 12:04 AM, Allan Odgaard wrote:
On 27/01/2012, at 08.25, ravasthi wrote:
[ text.{haml,html} ]
Brace expansion is not supported for root scope selectors.
So how would I best do that? As two entirely separate declarations? Or could I do something like
For now, as two separate sections.
[ text.haml, text.html ]
In next build full scope selectors are supported, so the comma will work, though need to be quoted, i.e.:
[ "text.haml, text.html" ]
For the records, the .tm_properties syntax is provisional, it has a few flaws (like the required quoting, whitespaces, etc.).