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 346
  • Win 258
  • OS X 41
  • Linux 47
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 Dec 7 Dec 6
Windows 0 2 0 1 0 0 0 1 0 1 1 0 0 0 0 0 1 0 0 0 0 0 1 0 1 0 0 0 0 0 2 0 0 1 0 0 1 0 2 1 1 0 1 1 1 1
OS X 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 1 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 1 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 custom delimeters. For SublimeText.

Package Installation

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

Key Bindings

Sample keybindings: * ctrl+left move to beginning of next contiguous boundary demarcated by a whitespace * ctrl+right move to beginning of previous contiguous boundary demarcated by a whitespace * alt+left move to beginning of previous subword boundary delineated by “, ., +, _, <, >, [, ], {, }, -, (, ) * alt+right move to beginning of next subword boundary delineated by ”, ., +, _, <, >, [, ], {, }, -, (, ) * ctrl+space expand_selection_to_delims - expand selection to (space), \, ', -, (, ), <, >, [, ], {, }, :, ., (comma), %, @, &, (tab), (newline) * ctrl+shift+q expand_selection_to_quotes - expand selection to “, ' * ctrl+shift+b expand_selection_to_brackets - expand selection to (, ), <, >, [, ], {, } * ctrl+delete delete_to_beg_next_contig_boundary (delete to beginning of next contiguous boundary)

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_beg_of_contig_boundary", "args": {"forward": false} },
{ "keys": ["ctrl+right"], "command": "move_to_beg_of_contig_boundary", "args": {"forward": true} },

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

{ "keys": ["ctrl+space"], "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+delete"], "command": "delete_to_beg_next_contig_boundary" },