-
Notifications
You must be signed in to change notification settings - Fork 1
Defaults
Keenan Johns edited this page May 11, 2025
·
1 revision
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.
- Type: Collector
- Description: Collects lines in the buffer forward or backward from the cursor.
- Extracts whole lines as targets.
- Extracts individual word targets using SmartMotion's internal word regex pattern.
- Extracts matches for a search string (typically 1β2 characters).
- Used for
f,F,t,T-style motions.
- A no-op. Passes targets through without modification.
- Removes any target not within the current screen view.
- Shows hint labels at the start of each target.
- 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.
| 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 |
| 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 |
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: