https://github.com/kaste/sublimelinter-addon-toggler
Provide some toggle commands for SublimeLinter. Esp. to enable or disable a linter per shortcut.
https://github.com/kaste/sublimelinter-addon-toggler
sublime sublimelinter sublimelinter-plugin
Last synced: about 1 year ago
JSON representation
Provide some toggle commands for SublimeLinter. Esp. to enable or disable a linter per shortcut.
- Host: GitHub
- URL: https://github.com/kaste/sublimelinter-addon-toggler
- Owner: kaste
- Created: 2018-04-10T19:02:19.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-09-03T13:37:22.000Z (over 1 year ago)
- Last Synced: 2025-04-01T18:18:34.954Z (about 1 year ago)
- Topics: sublime, sublimelinter, sublimelinter-plugin
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hi!
This is an addon for SublimeLinter.
## Enabling/disabling registered linters
First it adds a hook against Package Control. So, when you disable a package using Package Control
it actually unregisters this linter immediately. No need to restart anymore. This kind of disabling
is *persistent* and *global*.
Second, it adds a command to quickly enable/disable registered linters. The new command is called
`sublime_linter_addon_toggle_linters` and it may optionally take an argument.
Bind it to a key, e.g.
```
{ "keys": ["ctrl+k", "ctrl+t"],
"command": "sublime_linter_addon_toggle_linters"
"args": {"persist": "project"} // optional
},
```
If you don't set "persist" then disabling a linter is *global* for all open windows, but also
only *in memory*. Currently only "project" is implemented and saves the configuration in the open
project file.
## Toggle debug mode
Adds a command to **toggle the debug mode** of SublimeLinter. Search for "SublimeLinter: Toggle
debug mode" in the command palette. The internal name of that command is
`sublime_linter_addon_toggle_debug`.
## Switch lint mode
Adds a command to quickly **switch the lint mode** of SublimeLinter. Search for "SublimeLinter:
Switch lint mode". The command is called `sublime_linter_addon_choose_lint_mode` and it takes
`lint_mode` as an *optional* argument.
# Install
Open up the command palette and find `Package Control: Install Package`, and just
search for `SublimeLinter-addon-toggler`. (just a normal install)