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 395
  • Win 295
  • OS X 49
  • Linux 51
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 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6
Windows 0 0 0 0 2 0 0 1 1 1 0 0 1 1 0 0 0 0 0 0 1 1 0 1 0 1 0 0 0 4 0 0 0 0 0 1 2 0 0 0 0 2 0 1 0 0
OS X 0 0 0 0 0 0 1 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 1 1 0 0 0 1 0 0 0 0 1
Linux 0 0 0 0 0 0 0 0 1 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 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" },