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

Set​Syntax

Some generic keyboard bindings for 'Set Syntax:'

Details

  • 2.5.2
  • github.​com
  • github.​com
  • 6 months ago
  • 45 minutes ago
  • 14 years ago

Installs

  • Total 10K
  • Win 6K
  • Mac 2K
  • Linux 1K
Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1 Aug 31 Aug 30 Aug 29 Aug 28 Aug 27
Windows 0 0 1 0 0 0 0 0 1 0 2 1 0 1 1 0 2 1 1 0 0 0 1 0 0 0 2 0 0 0 2 0 1 0 0 1 0 1 0 0 0 1 1 0 1
Mac 0 1 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0
Linux 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 1 0 0 1 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"} },