Sublime Forum

load_settings key name should be read case insensitive

#1

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.
stackoverflow.com/questions/2082 … dictionary

0 Likes

#2

I think is correct to have case sensitive settings.

0 Likes