Skip to content

Commit

Permalink
Merge pull request #2 from deathaxe/feat/settings
Browse files Browse the repository at this point in the history
Directly use `edit_settings` command
  • Loading branch information
ruiokada authored Jan 3, 2024
2 parents 906c467 + dd4398b commit b1b3845
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 17 deletions.
6 changes: 5 additions & 1 deletion Default.sublime-commands
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
},
{
"caption": "Preferences: Atomic Soft Tab Nav Settings",
"command": "atomic_soft_tab_nav_edit_settings"
"command": "edit_settings",
"args": {
"base_file": "${packages}/Atomic Soft Tab Nav/Atomic Soft Tab Nav.sublime-settings",
"default": "// See the left pane for the list of settings and valid values\n{\n\t\"enable_line_nav\": ${0:false}\n}\n"
}
}
]
8 changes: 6 additions & 2 deletions Main.sublime-menu
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@
"children":
[
{
"command": "atomic_soft_tab_nav_edit_settings",
"caption": "Settings"
"caption": "Settings",
"command": "edit_settings",
"args": {
"base_file": "${packages}/Atomic Soft Tab Nav/Atomic Soft Tab Nav.sublime-settings",
"default": "// See the left pane for the list of settings and valid values\n{\n\t\"enable_line_nav\": ${0:false}\n}\n"
}
}
]
}
Expand Down
14 changes: 0 additions & 14 deletions atomic_soft_tab_nav.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,20 +129,6 @@ def on_text_command(self, view, command_name, args):


# Window Commands of Preferences
class AtomicSoftTabNavEditSettingsCommand(sublime_plugin.WindowCommand):
def run(self):
self.window.run_command(
'edit_settings',
{
"base_file": "${packages}/Atomic Soft Tab Nav/Atomic Soft Tab Nav.sublime-settings",
"default":
"// See the left pane for the list of settings and valid values\n"
"{\n"
' "enable_line_nav": false$0\n'
"}\n"
}
)


class AtomicSoftTabNavSetLineNavSettingsCommand(sublime_plugin.WindowCommand):
def run(self, **args):
Expand Down

0 comments on commit b1b3845

Please sign in to comment.