Drag and Drop lines and entire sections

Disclaimer
Is this plugin open source? Yes
Is this plugin completely free? Yes
Is this plugin vibe-coded beyond the author’s ability to comprehend how it works? No
Community Directory: Drag and Drop Lines


Hi everyone!

I built Drag and Drop Lines because I wanted to reorder my notes the way I do in an outliner, just by grabbing a line and moving it, without cutting and pasting.

How it works

Hover the gutter to the left of any line and a :: handle appears. Drag it up or down, a guide line shows where it will land, and release to drop it (or press Esc to cancel). Dragging near the top or bottom of the editor scrolls the note.

The handle moves the whole structure that starts on that line:

Dragged line What moves
List item The item with its nested items and indented content
Heading The whole section, up to the next heading of the same or higher level
First line of a callout The entire callout
Opening or closing fence of a code block The entire code block
Any other line Only that line

A few details:

  • Lines starting with # inside code blocks are not treated as headings.
  • Frontmatter has no handles and can’t be a drop target, so properties stay at the top.
  • Each move is a single edit, so Ctrl/Cmd + Z undoes it in one step.

Limitations

  • Desktop only (it relies on mouse events).
  • Works in Live Preview and Source mode, not Reading view.
  • Nested callouts and plain block quotes move one line at a time.

Install
Search for Drag and Drop Lines in Settings → Community plugins → Browse.

Source code (MIT): github.com/Anluhen/obsidian-drag-drop
Bug reports and feature requests are welcome on GitHub issues or right here in this thread.

Feedback is very welcome, especially ideas for mobile support!