Multiple cursors/cursor column

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:

  1. Hold Alt.
  2. Click where you want to spawn new coursor.
  3. 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:

  1. Place the coursor.
  2. Hold Alt+Shift.
  3. Drag the coursor.
  4. 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:

  1. Place the coursor.
  2. Hold Alt+Shift.
  3. Click where the column should end.
  4. 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