ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Sublime​Linter-addon-toggler

by kaste ST3

Provide some toggle commands for SublimeLinter. Esp. to enable or disable a linter per shortcut.

Details

Installs

  • Total 676
  • Win 338
  • Mac 240
  • Linux 98
Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13
Windows 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 1 0 1 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 1 0 0 1 0 0 1 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 1 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

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)