Home Download Buy Blog Forum Support

load_settings key name should be read case insensitive

load_settings key name should be read case insensitive

Postby robertcollier4 on Thu Aug 22, 2013 8:26 am

Its currently not very user friendly having the .sublime-settings files have case-sensitive keys.

sublime.load_settings("Test.sublime-settings").get("TestSetting")
sublime.load_settings("Test.sublime-settings").get("Testsetting")

It would be nice if the above two are equivalent. If the user defines the settings key "Testsetting" instead of "TestSetting" - it would be nice if it would still load the setting and not give error.

It seems it is done this way because of the Python case-sensitive dictionary class - but it can be subclassed easily to make it case-insensitive.
http://stackoverflow.com/questions/2082 ... dictionary
robertcollier4
 
Posts: 154
Joined: Sun Feb 24, 2013 5:37 pm

Re: load_settings key name should be read case insensitive

Postby tito on Thu Aug 22, 2013 9:43 am

I think is correct to have case sensitive settings.
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 855
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay


Return to Ideas and Feature Requests

Who is online

Users browsing this forum: No registered users and 6 guests