User guide / Bindable action reference

Selection actions

Development reference · View source

ActionModescountregisterextendargPositionDescription
selection-undonormal, selectrepeats———anyUndo the last selection change
selection-redonormal, selectrepeats———anyRedo the last selection change
select-linenormal, selectrepeats———anySelect the current line, then extend downward
extend-line-abovenormal, selectrepeats———anyExtend whole lines above
extend-line-belownormal, selectrepeats———anyExtend whole lines below
select-line-upnormal, selectrepeats———anySelect the current line, then extend upward
select-allnormal, select————anySelect all text
selection-collapse-startnormal, select, insert, replace————anyCollapse each range to its raw start offset
selection-collapse-headnormal, select, insert, replace————anyCollapse to the raw head without converting half-open endpoints
selection-collapsenormal, select————anyCollapse selection to the cursor
selection-flipnormal, select————anyFlip the selection anchor and cursor
select-around-parenthesesnormal, select————anySelect around parentheses
select-inside-parenthesesnormal, select————anySelect inside parentheses
select-around-square-bracketsnormal, select————anySelect around square brackets
select-inside-square-bracketsnormal, select————anySelect inside square brackets
select-around-bracesnormal, select————anySelect around braces
select-inside-bracesnormal, select————anySelect inside braces
select-around-angle-bracketsnormal, select————anySelect around angle brackets
select-inside-angle-bracketsnormal, select————anySelect inside angle brackets
select-around-double-quotesnormal, select————anySelect around double quotes
select-inside-double-quotesnormal, select————anySelect inside double quotes
select-around-single-quotesnormal, select————anySelect around single quotes
select-inside-single-quotesnormal, select————anySelect inside single quotes
select-around-backticksnormal, select————anySelect around backticks
select-inside-backticksnormal, select————anySelect inside backticks
select-inside-wordnormal, select————anySelect the word under the cursor
select-around-wordnormal, select————anySelect the word under the cursor and the space beside it
select-inside-long-wordnormal, select————anySelect the WORD under the cursor
select-around-long-wordnormal, select————anySelect the WORD under the cursor and the space beside it
select-inside-paragraphnormal, select————anySelect the paragraph’s lines
select-around-paragraphnormal, select————anySelect the paragraph’s lines and the blank lines beside them
select-around-closest-delimiternormal, select————anySelect around the closest delimiter pair
select-inside-closest-delimiternormal, select————anySelect inside the closest delimiter pair
selection-split-at-line-endsnormal, select————anyPlace a cursor at the end of every selected line
selection-split-at-line-startsnormal, select————anyPlace a cursor at the start of every selected line
selection-keep-primarynormal, select————anyDrop every selection except the primary
selection-remove-primarynormal, select————anyDrop the primary selection
selection-copy-downnormal, select————anyAdd a cursor on the line below
selection-copy-upnormal, select————anyAdd a cursor on the line above
selection-copy-down-paddednormal, select————anyAdd a cursor on the line below, padding it when needed
selection-copy-up-paddednormal, select————anyAdd a cursor on the line above, padding it when needed
selection-rotate-forwardnormal, select————anyMake the next selection primary
selection-rotate-backwardnormal, select————anyMake the previous selection primary
selection-rotate-contents-forwardnormal, select————anyRotate selected text forward
selection-rotate-contents-backwardnormal, select————anyRotate selected text backward
selections-keep-matchingnormal, select———patternlast unless argKeep selections matching a regular expression
selections-remove-matchingnormal, select———patternlast unless argRemove selections matching a regular expression
selections-alignnormal, select————anyPad with spaces so every cursor shares the rightmost column
selections-trimnormal, select————anyTrim whitespace from every selection