Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Default.sublime-commands
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
"caption": "Preference Helper: Open *.sublime-settings",
"command": "pref_open_setting_file"
},
{
"caption": "Preference Helper: Prefill from Default.sublime-settings",
"command": "pref_fill_setting_file"
},
{
"caption": "Preference Helper: Disable Read-only for Package",
"command": "pref_exclude_package"
Expand Down
3 changes: 3 additions & 0 deletions Preference Helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ def on_query_completions(self, view, prefix, locations):

class PrefFillSettingFileCommand(sublime_plugin.TextCommand):

def is_enabled(self):
return is_sublime_settings(self.view)

def run(self, edit):

point = self.view.sel()[0].a if self.view.sel()[0].a < self.view.sel()[0].b else self.view.sel()[0].b
Expand Down