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

Move By Paragraph

by xsleonard ALL

Navigate and select text by paragraph

Details

Installs

  • Total 2K
  • Win 614
  • Mac 557
  • Linux 367
Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10 Feb 9 Feb 8 Feb 7 Feb 6 Feb 5 Feb 4 Feb 3 Feb 2 Feb 1 Jan 31 Jan 30 Jan 29 Jan 28 Jan 27 Jan 26 Jan 25 Jan 24 Jan 23 Jan 22 Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15
Windows 0 0 0 0 0 0 0 0 0 0 1 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 1 0 0
Mac 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 1 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 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 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

sublime-MoveByParagraph

A Sublime Text 2 plugin extension to the move command

A new command is added, "move_by_paragraph". These "args" are accepted:

  • "forward" (bool): True if this moves down the page
  • "extend" (bool): True if this should create a selection
  • ignore_blank_lines (bool): Set to true to ignore lines with nothing but whitespace (excluding newline) as text for paragraph boundaries. Defaults to true.
  • stop_at_paragraph_begin (bool): Set to true to stop the cursor at the beginning of paragraphs. Defaults to true
  • stop_at_paragraph_end (bool): Set to true to stop the cursor at the end of paragraphs. Defaults to false. Both stop_at_paragraph_begin and stop_at_paragraph_end can be set at the same time.

Moving by Paragraph

Example (add this to your keymap):

{"keys": ["ctrl+up"], "command": "move_by_paragraph", "args": {"forward": false}},
{"keys": ["ctrl+down"], "command": "move_by_paragraph", "args": {"forward": true}},

Example with selection (add this to your keymap):

{"keys": ["ctrl+shift+up"], "command": "move_by_paragraph", "args": {"forward": false, "extend": true}},
 {"keys": ["ctrl+shift+down"], "command": "move_by_paragraph", "args": {"forward": true, "extend": true}},

Note that "ctrl+shift+up/down" will overwrite the default action of moving the current selection up or down, which is why this is not set by default. Personally, I remapped that behaviour to "ctrl+t" and "ctrl+g".

Suggested Plugins