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 653
  • Win 330
  • Mac 232
  • Linux 91
Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5
Windows 0 0 0 0 0 0 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 0 0 0 0 0 2 0 0 0 0 0 0 1
Mac 0 0 1 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 1 0 1 0 0 0 0 0 1 0 0
Linux 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 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)