Defaults - FluxxField/smart-motion.nvim GitHub Wiki
Built-in Modules Reference
SmartMotion comes with a complete set of default modules โ collectors, extractors, filters, visualizers, actions, wrappers, and presets โ that give you powerful capabilities right out of the box.
๐ฅ Collectors
lines
- Type: Collector
- Description: Collects lines in the buffer forward or backward from the cursor.
๐ Extractors
lines
- Extracts whole lines as targets.
words
- Extracts individual word targets using SmartMotion's internal word regex pattern.
text_search
- Extracts matches for a search string (typically 1โ2 characters).
- Used for
f
,F
,t
,T
-style motions.
๐งผ Filters
default
- A no-op. Passes targets through without modification.
filter_visible_lines
- Removes any target not within the current screen view.
๐ Visualizers
hint_start
- Shows hint labels at the start of each target.
hint_end
- Shows hint labels at the end of each target.
[!NOTE] Visualizers can be used for much more than hinting โ popups, floating windows, and Telescope integration are all possible.
๐ฌ Actions
Name | Description |
---|---|
jump |
Moves the cursor to the target |
delete , change , yank |
Performs the corresponding action from cursor to target |
*_jump |
First jumps to target, then runs the action |
*_line |
Line-based versions of delete/yank/change |
*_until |
Performs the action up to (not including) the target |
remote_* |
Performs the action without moving the cursor |
restore |
Restores the cursor to its original location |
๐งฉ Pipeline Wrappers
Name | Description |
---|---|
default |
Runs the pipeline once without modification |
text_search |
Prompts user for 1โ2 characters before running pipeline |
live_search |
Re-runs the pipeline dynamically as user types input |
๐ฆ Presets
The following presets are available:
words
: Motions forw
,b
,e
,ge
lines
: Motions forj
,k
search
: Motions forf
,F
,s
,S
delete
,yank
,change
: Actions plus motions likedt)
,yt)
,ct)
See presets.md
for the full breakdown of mappings and behavior.
Next: