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

Set​Syntax

Some generic keyboard bindings for 'Set Syntax:'

Details

Installs

  • Total 10K
  • Win 6K
  • Mac 2K
  • Linux 1K
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 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16
Windows 0 0 1 0 0 0 1 0 0 0 1 1 0 1 0 0 1 0 0 0 0 1 0 4 0 1 0 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 1 0 0 1 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 1 0 0 0 1 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 1 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

SetSyntax

Some generic keyboard bindings for 'Set Syntax:'

Installation

Using Package Control, install “SetSyntax” or clone this repo in your packages folder.

I recommended you add key bindings for the commands. I've included my preferred bindings below. Copy them to your key bindings file (⌘⇧,).

Commands

set_syntax: Opens a command selector that is prefiltered with 'Set Syntax'.

If you provide a matches argument, the list will be filtered further, and if only one syntax matches that syntax is used.

set_syntax_settings: Easy access to indentation settings for the current buffer (does not change global settings).

Key Bindings

Copy these to your user key bindings file.

{ "keys": ["super+ctrl+shift+s"], "command": "set_syntax_settings" },
{ "keys": ["ctrl+alt+shift+a"], "command": "set_syntax", "args": {"matches": "a"} },
{ "keys": ["ctrl+alt+shift+b"], "command": "set_syntax", "args": {"matches": "b"} },
{ "keys": ["ctrl+alt+shift+c"], "command": "set_syntax", "args": {"matches": "c"} },
{ "keys": ["ctrl+alt+shift+d"], "command": "set_syntax", "args": {"matches": "d"} },
{ "keys": ["ctrl+alt+shift+e"], "command": "set_syntax", "args": {"matches": "e"} },
{ "keys": ["ctrl+alt+shift+f"], "command": "set_syntax", "args": {"matches": "f"} },
{ "keys": ["ctrl+alt+shift+g"], "command": "set_syntax", "args": {"matches": "g"} },
{ "keys": ["ctrl+alt+shift+h"], "command": "set_syntax", "args": {"matches": "h"} },
{ "keys": ["ctrl+alt+shift+i"], "command": "set_syntax", "args": {"matches": "i"} },
{ "keys": ["ctrl+alt+shift+j"], "command": "set_syntax", "args": {"matches": "j"} },
{ "keys": ["ctrl+alt+shift+k"], "command": "set_syntax", "args": {"matches": "k"} },
{ "keys": ["ctrl+alt+shift+l"], "command": "set_syntax", "args": {"matches": "l"} },
{ "keys": ["ctrl+alt+shift+m"], "command": "set_syntax", "args": {"matches": "m"} },
{ "keys": ["ctrl+alt+shift+n"], "command": "set_syntax", "args": {"matches": "n"} },
{ "keys": ["ctrl+alt+shift+o"], "command": "set_syntax", "args": {"matches": "o"} },
{ "keys": ["ctrl+alt+shift+p"], "command": "set_syntax", "args": {"matches": "p"} },
{ "keys": ["ctrl+alt+shift+q"], "command": "set_syntax", "args": {"matches": "q"} },
{ "keys": ["ctrl+alt+shift+r"], "command": "set_syntax", "args": {"matches": "r"} },
{ "keys": ["ctrl+alt+shift+s"], "command": "set_syntax", "args": {"matches": "s"} },
{ "keys": ["ctrl+alt+shift+t"], "command": "set_syntax", "args": {"matches": "t"} },
{ "keys": ["ctrl+alt+shift+u"], "command": "set_syntax", "args": {"matches": "u"} },
{ "keys": ["ctrl+alt+shift+v"], "command": "set_syntax", "args": {"matches": "v"} },
{ "keys": ["ctrl+alt+shift+w"], "command": "set_syntax", "args": {"matches": "w"} },
{ "keys": ["ctrl+alt+shift+x"], "command": "set_syntax", "args": {"matches": "x"} },
{ "keys": ["ctrl+alt+shift+y"], "command": "set_syntax", "args": {"matches": "y"} },
{ "keys": ["ctrl+alt+shift+z"], "command": "set_syntax", "args": {"matches": "z"} },