Selection Utilities
Selection Utilities provides a series of utilities for manipulating, saving and creating both single and multiple selections, many of which are inspired by Kakoune.
To start learning and using Selection Utilities you can use Master Key, as Selection Utilities was designed as a modular component to support Master Key. Master Key has extensive features that make these commands easily discoverable.
Because there are so many commands, and any given set of keybindings for this extension could easily overwrite existing bindings, there are no default keybindings; if you do not want to use this extension via Master Key, you will need to learn about the commands you want to use and then customize them yourself for your own purpose.
Related projects
Commands
The following commands are available in Selection Utilities:
Active Cursor Motions
Active cursor motions change the position of the cursor. The location of the cursor in a selection is called the active end of the selection, while the other end of the selection is called the anchor.
selection-utilities.exchangeAnchorActive
selection-utilities.activeAtEnd
selection-utilities.activeAtStart
selection-utilities.shrinkToActive
selection-utilities.revealActive
selection-utilities.activePageMove
Multiselection Primitives
These commands modify the number of selections, usually in reference to the primary selection, which is colored differently than the other selections. Focus is generally moved with this primary selection.
selection-utilities.movePrimaryLeft
selection-utilities.movePrimaryRight
selection-utilities.focusPrimarySelection
selection-utilities.appendToMemory
selection-utilities.restoreAndClear
selection-utilities.swapWithMemory
selection-utilities.cancelSelection
selection-utilities.deleteLastSaved
selection-utilities.deletePrimary
selection-utilities.addNext
selection-utilities.skipNext
selection-utilities.addPrev
selection-utilities.skipPrev
Selection Filters
selection-utilities.includeBy
selection-utilities.excludeBy
selection-utilities.includeByRegex
selection-utilities.excludeByRegex
Unit Motions
Moves or selects text according to a unit. Units are defined by one or more regular expressions.
selection-utilities.moveBy
selection-utilities.narrowTo
selection-utilities.moveCursorToNextSubword
selection-utilities.moveToNextSubword
selection-utilities.selectToNextSubword
selection-utilities.moveCursorToNextWord
selection-utilities.moveToNextWord
selection-utilities.selectToNextWord
selection-utilities.moveCursorToNextBigWord
selection-utilities.moveToNextBigWord
selection-utilities.selectToNextBigWord
selection-utilities.moveCursorToNextParagraph
selection-utilities.moveToNextParagraph
selection-utilities.selectToNextParagraph
selection-utilities.moveCursorToNextSubsection
selection-utilities.moveToNextSubsection
selection-utilities.selectToNextSubsection
selection-utilities.moveCursorToNextSection
selection-utilities.moveToNextSection
selection-utilities.selectToNextSection
selection-utilities.moveCursorToPreviousSubword
selection-utilities.moveToPreviousSubword
selection-utilities.selectToPreviousSubword
selection-utilities.moveCursorToPreviousWord
selection-utilities.moveToPreviousWord
selection-utilities.selectToPreviousWord
selection-utilities.moveCursorToPreviousBigWord
selection-utilities.moveToPreviousBigWord
selection-utilities.selectToPreviousBigWord
selection-utilities.moveCursorToPreviousParagraph
selection-utilities.moveToPreviousParagraph
selection-utilities.selectToPreviousParagraph
selection-utilities.moveCursorToPreviousSubsection
selection-utilities.moveToPreviousSubsection
selection-utilities.selectToPreviousSubsection
selection-utilities.moveCursorToPreviousSection
selection-utilities.moveToPreviousSection
selection-utilities.selectToPreviousSection
Selection Editing
These commands tweak or modify what is selected.
selection-utilities.trimSelectionWhitespace
selection-utilities.splitByNewline
selection-utilities.splitBy
selection-utilities.splitByRegex
selection-utilities.createBy
selection-utilities.createByRegex
Number Editing
These commands increment or decrement a number in a selection.
selection-utilities.incrementNumber
selection-utilities.decrementNumber
selection-utilities.incrementNumberPerSelection
selection-utilities.decrementNumberPerSelection
Selection Alignment
Symmetric Editing
These commands modify text or the selection at both ends of the current selections.