I have both:
softWrap = true softTabs = true
set universally in my .tm_properties file, yet I occasionally open files that ignore both of these settings, requiring me to set them manually from the menu bar. Has anyone else seen this?
On Saturday, July 7, 2012 at 10:38 AM, Chris Fonnesbeck wrote:
I have both:
softWrap = true softTabs = true
set universally in my .tm_properties file, yet I occasionally open files that ignore both of these settings, requiring me to set them manually from the menu bar. Has anyone else seen this?
This also recurs, by the way, when I switch away from a buffer and then switch back. The soft wrap disappears and has to be manually applied again.
On 07/07/2012, at 17.38, Chris Fonnesbeck wrote:
I have both:
softWrap = true softTabs = true
set universally in my .tm_properties file, yet I occasionally open files that ignore both of these settings, requiring me to set them manually from the menu bar.
Most likely this is because another setting is affecting the file you open.
I assume it is always the same files that ignore your global settings, so try move those files to your home folder, see if they are still affected, and if so, try to create a new file of the same type, see if that is also affected.
On 2012-07-09 09:16, Allan Odgaard wrote:
On 07/07/2012, at 17.38, Chris Fonnesbeck wrote:
I have both:
softWrap = true softTabs = true
set universally in my .tm_properties file, yet I occasionally open files that ignore both of these settings, requiring me to set them manually from the menu bar.
Most likely this is because another setting is affecting the file you open.
With so many different places properties can be set it's often difficult to track down exactly which one has precedence. This problem is similar to CSS in which styles can be overridden by other style sheets. Just to add to the growing list of feature requests, can something like Firebug's CSS browser be implemented for .tm_properties?
Here's a screenshot for anyone who's unfamiliar with Firebug. In the actual tool you can mouse-over the filename to see the full path. For a TM equivalent you could replace the HTML tags with applicable scope names.
On 9 Jul 2012, at 16:33, Steve King wrote:
[…] With so many different places properties can be set
Well, it is just file’s current folder and up through the file hierarchy :)
it's often difficult to track down exactly which one has precedence.
The most local file type specific, if none, the most local non-file type specific.
This problem is similar to CSS in which styles can be overridden by other style sheets. Just to add to the growing list of feature requests, can something like Firebug's CSS browser be implemented for .tm_properties?
Well, I don’t know about that, but I certainly would like to provide a UI for setting values; the problem is that the possibilities of the text files are hard to manage in a UI, mainly that the files are scattered on disk, i.e. the “view” of what is in affect changes with selected file (and we would have to scan the entire disk to list all files targetted specifically).
I have maintaining settings in a single file (for all folders), while this would be easier to create a UI for, I think too many advantages are lost (having settings move around with your project, being version controlled with your project, etc.).
But definitely something should be made… for debugging purposes we could provide a simple tool that, given a path, lists all the settings sourced for that path, leave it as a user exercise to generate HTML from that mimicking the firebug stuff ;)