I do not like to commenting packages in setting, i want to quickly enable or disable group of plugin, and this is working solution but has error in console…
Work with Multicommand plugin
in Plugin Chain doesnt work
Example to disable/enable plugins (Column Select and RegReplace)
{"caption": "Disable group packags", // "keys": ["super+s"], "command": "multicommand", "args": { "commands": [ {"command": "disable_package",}, {"command": "insert", "args": {"characters": "Column Select"}}, {"command": "select"}, {"command": "disable_package",}, {"command": "insert", "args": {"characters": "RegReplace"}}, {"command": "select"}, ]}}, {"caption": "Enable group packags", // "keys": ["super+s"], "command": "multicommand", "args": { "commands": [ {"command": "enable_package",}, {"command": "insert", "args": {"characters": "Column Select"}}, {"command": "select"}, {"command": "enable_package",}, {"command": "insert", "args": {"characters": "RegReplace"}}, {"command": "select"}, ]}},
the only issues is error in console, but its working.
Error console:
Traceback (most recent call last):
File “/Applications/Sublime Text 4.app/Contents/MacOS/Lib/python33/sublime_plugin.py”, line 928, in on_modified_async
run_view_callbacks(‘on_modified_async’, view_id)
File “/Applications/Sublime Text 4.app/Contents/MacOS/Lib/python33/sublime_plugin.py”, line 708, in run_view_callbacks
callback(v, *args)
File “/Applications/Sublime Text 4.app/Contents/MacOS/Lib/python33/sublime_plugin.py”, line 190, in exception_handler
return event_handler(*args)
File “/Users/z/Library/Application Support/Sublime Text/Installed Packages/WordCount.sublime-package/WordCount.py”, line 93, in on_modified_async
ws[‘modified’] = True
TypeError: ‘NoneType’ object does not support item assignment
Traceback (most recent call last):
File “/Applications/Sublime Text 4.app/Contents/MacOS/Lib/python33/sublime_plugin.py”, line 936, in on_selection_modified_async
run_view_callbacks(‘on_selection_modified_async’, view_id)
File “/Applications/Sublime Text 4.app/Contents/MacOS/Lib/python33/sublime_plugin.py”, line 708, in run_view_callbacks
callback(v, *args)
File “/Applications/Sublime Text 4.app/Contents/MacOS/Lib/python33/sublime_plugin.py”, line 190, in exception_handler
return event_handler(*args)
File “/Users/z/Library/Application Support/Sublime Text/Installed Packages/WordCount.sublime-package/WordCount.py”, line 99, in on_selection_modified_async
ws[‘selection’] = True
TypeError: ‘NoneType’ object does not support item assignment
Traceback (most recent call last):
File “/Applications/Sublime Text 4.app/Contents/MacOS/Lib/python33/sublime_plugin.py”, line 928, in on_modified_async
run_view_callbacks(‘on_modified_async’, view_id)
File “/Applications/Sublime Text 4.app/Contents/MacOS/Lib/python33/sublime_plugin.py”, line 708, in run_view_callbacks
callback(v, *args)
File “/Applications/Sublime Text 4.app/Contents/MacOS/Lib/python33/sublime_plugin.py”, line 190, in exception_handler
return event_handler(*args)
File “/Users/z/Library/Application Support/Sublime Text/Installed Packages/WordCount.sublime-package/WordCount.py”, line 93, in on_modified_async
ws[‘modified’] = True
TypeError: ‘NoneType’ object does not support item assignment
Traceback (most recent call last):
File “/Applications/Sublime Text 4.app/Contents/MacOS/Lib/python33/sublime_plugin.py”, line 936, in on_selection_modified_async
run_view_callbacks(‘on_selection_modified_async’, view_id)
File “/Applications/Sublime Text 4.app/Contents/MacOS/Lib/python33/sublime_plugin.py”, line 708, in run_view_callbacks
callback(v, *args)
File “/Applications/Sublime Text 4.app/Contents/MacOS/Lib/python33/sublime_plugin.py”, line 190, in exception_handler
return event_handler(*args)
File “/Users/z/Library/Application Support/Sublime Text/Installed Packages/WordCount.sublime-package/WordCount.py”, line 99, in on_selection_modified_async
ws[‘selection’] = True
TypeError: ‘NoneType’ object does not support item assignment
reloading settings Packages/User/Preferences.sublime-settings
reloading /Users/z/Library/Application Support/Sublime Text/Packages/User/Preferences.sublime-settings
reloading settings Packages/User/Preferences.sublime-settings
If anyone has better options, I would be grateful