Problem
Staying sane while trying to bulk edit multiple lines. Obsidian has an option for multiple cursors, yet placing multiple of them (what an irony) is very annoying:
- It requires dragging the coursor. It is hard, if the file is long or while using touchpad.
- Cursors blink while beeing added. Main cursor blinks out of sync with extra cursors. It is easy to loose track of them.
- You have to first use
Alt+Shift, then start holding the left mouse button. If you reverse the order, it will not work. - Onced placed coursor, cannot be removed. You have to start again, if you missclick.
Proposed solution
It is well implemented in Visual Studio Code. Try it out:
Placing multiple coursors:
- Hold
Alt. - Click where you want to spawn new coursor.
- Relese
Alt.
- Notice that you can click the coursor to remove it.
- Notice that all placed coursors stop blinking for a while after placing new coursor.
Placing the column of coursors by dragging:
- Place the coursor.
- Hold
Alt+Shift. - Drag the coursor.
- Relese all buttons.
- Notice that it works, even with step order of
1-3-2. - Notice that this method also allows you to select range of text.
- Notice that all coursors do not blink while you keep moving the mouse.
- Notice that while you keep holding the
Alt+Shift, moving the mouse does not place the coursors right away. You can keep moving the mouse.
Placing the column of coursors between two points:
- Place the coursor.
- Hold
Alt+Shift. - Click where the column should end.
- Relese all buttons.
- Notice that in case there are multiple coursors already placed, the oldest one is used as a starting point of the column, other coursors are removed.
- Notice that you can add/remove coursors using
Alt