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

Sublime​Linter-addon-toggler

by kaste ST3

Provide some toggle commands for SL. Esp. enable/disable a linter per shortcut

Details

Installs

  • Total 36
  • Win 14
  • OS X 21
  • Linux 1
Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9
Windows 0 0 1 0 0 1 0 0 2 1 0 0 0 0 0 1 0 1 1 2 1 0 1 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0
OS X 0 0 0 0 0 0 1 0 1 1 0 0 0 0 4 0 1 1 1 0 2 1 2 0 0 0 0 0 1 1 0 0 0 0 1 1 0 0 0 1 0 0 0 0 0
Linux 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 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.

Second, it adds a command to quickly enable/disable registered linters. Disabling a linter here is global, although the menu only shows linters that would work for the current view (to make the list shorter). This kind of disabling is only in memory.

The new command is called sublime_linter_addon_toggle_linters and it takes no arguments.

Bind it to a key e.g.

{ "keys": ["ctrl+k", "ctrl+t"],
    "command": "sublime_linter_addon_toggle_linters"
  },

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

Add this repo to Package Control.

  1. Open up the command palette (ctrl+shift+p), and find Package Control: Add Repository. Then enter the URL of this repo: https://github.com/kaste/SublimeLinter-addon-toggler in the input field.
  2. Open up the command palette again and find Package Control: Install Package, and just search for SublimeLinter-addon-toggler. (just a normal install)