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 451
  • Win 335
  • OS X 55
  • Linux 61
Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6
Windows 0 0 0 0 1 1 3 0 1 1 0 0 0 0 1 0 2 0 0 1 0 0 0 0 0 0 1 0 0 1 2 0 1 0 0 0 0 0 1 1 0 2 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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 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" },