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 530
  • Win 393
  • OS X 67
  • Linux 70
Jan 22 Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7 Jan 6 Jan 5 Jan 4 Jan 3 Jan 2 Jan 1 Dec 31 Dec 30 Dec 29 Dec 28 Dec 27 Dec 26 Dec 25 Dec 24 Dec 23 Dec 22 Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8
Windows 0 0 0 0 0 0 0 2 1 0 0 0 0 1 0 0 0 1 1 1 0 0 0 0 1 1 1 0 0 0 1 0 0 0 0 0 0 0 2 0 0 0 0 0 0 1
OS X 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 1 0 0 0 0 0 0 0
Linux 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 0 0 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"},