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

Keyboard​Selection

by robertcollier4 ST2/ST3

Keyboard movement and selection to contiguous and delimeter boundaries for SublimeText ST2 ST3

Details

Installs

  • Total 493
  • Win 364
  • OS X 62
  • Linux 67
Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 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
Windows 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 1 0 0 0 1 1 1 0 0 0 1 1 0 0 1 1 0 0 4
OS X 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 1 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 2 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

KeyboardSelectionSublime

Keyboard movement and selection to contiguous and delimeter boundaries for SublimeText ST2 ST3.

Package Installation

  • Manual method: Download ZIP from github. Extract the files to Sublime_Data_Dir\Packages\KeyboardSelection
  • Automatic method: Install 'KeyboardSelection' from Package Control.

Key Bindings

Sample keybindings: * ctrl+left move to previous contiguous boundary demarcated by a whitespace * ctrl+right move to next contiguous boundary demarcated by a whitespace * alt+left move to previous subword boundary demarcated by “, ', %, @, &, :, ., (comma), +, _, -, <, >, (, ), [, ], {, }, |, \, / * alt+right move to next subword boundary demarcated by ”, ', %, @, &, :, ., (comma), +, _, -, <, >, (, ), [, ], {, }, |, \, / * ctrl+shift+left select to previous contiguous boundary demarcated by a whitespace * ctrl+shift+right select to next contiguous boundary demarcated by a whitespace * ctrl+backspace delete_to_contig_boundary - backspace to contiguous boundary demarcated by a whitespace * ctrl+delete delete_to_contig_boundary - delete to contiguous boundary demarcated by a whitespace * ctrl+shift+w expand_selection_to_whitespace - expand selection to whitespace * ctrl+shift+d expand_selection_to_delims - expand selection to “, ', %, @, &, :, ., (comma), +, _, -, <, >, (, ), [, ], {, }, |, \, / * ctrl+shift+q expand_selection_to_quotes - expand selection to ”, ' * ctrl+shift+b expand_selection_to_brackets - expand selection to (, ), <, >, [, ], {, } * ctrl+shift+l expand_selection_to_line - expand selection to line

Since these are redefining your very basic navigational keys, the package does not automatically overwrite your existing key bindings. You must choose to add the keybindings yourself specific to your OS.

For Windows, you can use the recommended sample keybindings by adding the following lines to [Sublime_Data_Dir]\User\Default (Windows).sublime-keymap or [Sublime_Data_Dir]\KeyboardSelection\Default (Windows).sublime-keymap

{ "keys": ["ctrl+left"], "command": "move_to_contig_boundary", "args": {"forward": false} },
{ "keys": ["ctrl+right"], "command": "move_to_contig_boundary", "args": {"forward": true} },

{ "keys": ["alt+left"], "command": "move_to_subword_boundary", "args": {"forward": false} },
{ "keys": ["alt+right"], "command": "move_to_subword_boundary", "args": {"forward": true} },

{ "keys": ["ctrl+shift+left"], "command": "select_to_contig_boundary", "args": {"forward": false} },
{ "keys": ["ctrl+shift+right"], "command": "select_to_contig_boundary", "args": {"forward": true} },

{ "keys": ["ctrl+backspace"], "command": "delete_to_contig_boundary", "args": {"forward": false} },
{ "keys": ["ctrl+delete"], "command": "delete_to_contig_boundary", "args": {"forward": true} },

{ "keys": ["ctrl+shift+w"], "command": "expand_selection_to_whitespace" },
{ "keys": ["ctrl+shift+d"], "command": "expand_selection_to_delims" },
{ "keys": ["ctrl+shift+q"], "command": "expand_selection_to_quotes"},
{ "keys": ["ctrl+shift+b"], "command": "expand_selection_to_brackets"},
{ "keys": ["ctrl+shift+l"], "command": "expand_selection_to_line"},