Multi-cursor mode
Intro
Multi-cursor mode works through two main mechanisms: Movement and Selection Mode.
Unlike other editors where there are specific keybindings for adding cursors in specific ways, Ki gives you the freedom to add cursors by either:
- Using Movement commands to place additional cursors
- Changing the Selection Mode to split existing selections into multiple cursors
This flexibility allows you to:
- Add a cursor to the next word
- Add cursors until the last line
- Add a cursor to the previous diagnostic
- Add a cursor to an oddly specific place
- Add cursors to all lines within current selection(s)
These are just examples - the true power of multi-cursor mode comes from combining Movement and Selection Mode in creative ways. Unleash your imagination!
1. Movements
In the Multi-cursor mode, every core movement means:
Add a cursor with <movement>
2. Selection Mode Changes
In the Multi-cursor mode, changing the selection mode means:
Split each selection by the new selection mode
3. Other multicursor actions
Keymap:
A. Keep Match
/Remove Match
Keep/Remove selections matching search.
This is only useful when there's more than 1 selection/cursor, and you want to remove some selections.
B. Curs All
Add cursor to all matching selections.
C. Keep Prime Curs
Keep primary cursor only.
D. Delete Curs ←
/Delete Curs →
Delete primary cursor backward/forward.