How can I implement a custom settings file into my plugin, so that the user can add their own values, then my plugin read them later on?
JSON would be the best way of storing them, to keep in sync with the rest of Sublime.
history_filename = 'YourPluginName.sublime-settings'
history = sublime.load_settings(history_filename)
history.set("some_key", "some_value")
value = history.get("some_key")
sublime.save_settings(history_filename)
Users browsing this forum: No registered users and 6 guests