SetSyntax
Some generic keyboard bindings for 'Set Syntax:'
Labels language syntax
Details
Installs
- Total 10K
- Win 6K
- Mac 2K
- Linux 1K
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 | 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 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
Mac | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
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"} },