Drag and Drop Lines

by anluhen
5
4
3
2
1
Score: 30/100

Description

The Drag and Drop Lines plugin lets you reorder content using handles in the editor gutter. Dragging a list item carries its nested items and indented content, while a heading moves its section up to the next heading of the same or a higher level. Callouts move as a whole from their first line and dragging either fence moves an entire code block. A drop indicator marks the destination, dragging near editor edges scrolls the note and Esc cancels a move. Each move can be undone as a single edit. Frontmatter cannot be dragged or used as a drop target. It works only on desktop in Live Preview and Source mode. Nested callouts and plain block quotes move one line at a time.

Reviews

No reviews yet.

Stats

2
stars
286
downloads
0
forks
9
days
15
days
15
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
2
total issues
2
open issues
0
closed issues
5
commits

Latest Version

15 days ago

Changelog

README file from

Github

Drag and Drop Lines

Reorder your notes by dragging lines in the editor, the way you would in an outliner.

Usage

Hover the gutter to the left of a line to reveal its handle (::), then drag it up or down. A line shows where the block will land. Release the mouse 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 a 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

Lines that start with # inside a code block are not treated as headings. Frontmatter has no handles and can't be a drop target, so properties stay at the top of the note.

Each move is a single edit, so Ctrl/Cmd + Z undoes it.

Limitations

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

Installation

Search for Drag and Drop Lines in Settings → Community plugins → Browse, then install and enable it.

To install manually, download main.js, manifest.json and styles.css from the latest release into <vault>/.obsidian/plugins/drag-n-drop-lines/ and enable the plugin.

Development

npm install
npm run dev    # rebuild main.js on change
npm run lint   # eslint-plugin-obsidianmd checks
npm run build  # type-check and production build

License

MIT

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Quiet Outline
5 years ago by the_tree
Improving experience of outline in Obsidian
Custom File Explorer sorting
4 years ago by SebastianMC
Take full control over the order and sorting of folders and notes in File Explorer in Obsidian
Editing Toolbar
4 years ago by Cuman
An obsidian toolbar plugin, modified from the Cmenu plugin
Daily Note Outline
4 years ago by iiz
Add a custom view which shows outline of multiple daily notes with headings, links, tags and list items
Keyshots
4 years ago by KrazyManJ
🔮📝 Obsidian plugin that adds classic hotkey/shortcuts commands from popular IDEs like Visual Studio Code or JetBrains Family.
Better Search Views
3 years ago by Ivan Lednev
Outliner-like breadcrumb trees for search, backlinks and embedded queries
Emacs text editor
3 years ago by Klojer
Multiple Notes Outline
3 years ago by iiz
Zettelkasten Outliner
3 years ago by Tyler Suzuki Nelson
Outline Converter
3 years ago by masaki39
Convert outline to continuous text.
Outline to task list
3 years ago by alexandrerbb
A simple Obsidian plugin to convert a note's outline to a task list
List Outline Helper
2 years ago by triangular-sneaky
Obsidian plugin to select the current outline
Line Arrange
2 years ago by Chitwan Singh
Obsidian Plugin For Arranging Lines.
Journey
6 years ago by Alexis Rondeau
Discover the story between your notes in Obsidian
Outliner
6 years ago by Viacheslav Slinko
Work with your lists like in Workflowy or RoamResearch
Multi-line Formatting
5 years ago by nmady
Format Obsidian text over an entire selection, even if that selection has paragraph breaks in the middle!
Go to Line
5 years ago by phibr0
Markmind
5 years ago by Mark
A mind map, outline for obsidian,It support mobile and desktop
Advanced Cursors
5 years ago by SkepticMystic
Dynamic Outline
2 years ago by theopavlove
Adds a customizable GitHub-like floating table of contents to Obsidian.
InlineAI
2 years ago by FBarrca
Auto Folder Note Paste
2 years ago by d7sd6u
Convert your note into folder note upon pasting or drag'n'dropping an attachment
Vim Marker Sharpener
a year ago by Artem Dvoryadkin
Text formatting commands in Vim mode. Supports applying styles (bold, italic, etc.). Works correctly in visual mode with selected text.
Tree Diagram
a year ago by limpido
An Obsidian plugin that converts tab-indented text to a tree diagram.
Better Mind Map
a year ago by Utkarsh Raj
Obsidian plugin to for mind maps, vizualize current note as mind map.
Sonkil
a year ago by ohyoungpark
Floating Headings
9 months ago by k0src
Displays a floating, collapsible outline of a note's headings on the right side of the editor. Expands on hover, click to navigate.
WebDAV Explorer
8 months ago by 蓝星晓夜
WebDAV Server Explorer.
Kanban Bases View
8 months ago by I. Welch Canavan
A kanban-style drag-and-drop custom view for Obsidian Bases that allows you to organize your notes into columns based on any property.
Graphic Organizer
7 months ago by Nick Le Guillou - Superhuman Curiosity
Calendar Bases
7 months ago by Edrick Leong
Yori Task
6 months ago by yorigo77
task manager, week planner, year planner
Base Board
5 months ago by mderazon
Kanban Plugin For Obsidian
Dragger
5 months ago by ariestar
An Obsidian plugin for dragging and rearranging any block.
Flexplorer
4 months ago by kh4f
🗃️ Obsidian File Explorer Enhancer
Chinese Novel Assistant
3 months ago by pingo888
A set of small features designed to make writing Chinese novels more convenient.
Budget Planner
3 months ago by kalinichenko88
A minimalist budget planning tool for Obsidian. Create, track, and manage budgets using markdown code blocks directly in your notes.
Gay Toolbar
3 months ago by chaskane
Colorful, customizable toolbar for Obsidian, designed for mobile.
Visual Card Writer
3 months ago by David Hurt
A visual, card-based Markdown writing interface for Obsidian.
Link Structure
3 months ago by Dmitry Fert
Obsidian plugin that adds a Structure view for Bases, displaying notes as a hierarchical tree based on the up property. Supports drag-and-drop reorganization with automatic link updates, multi-select, and Templater integration.
Sectionals
2 months ago by Aaron Bell
Edit Markdown by structure
Linked Graph Navigator
2 months ago by woonyong-kr
Follow links from the current Obsidian note in written order, using a sidebar outline or graph.
ICOR for Life - Interface
2 months ago by Paperless Movement S.L.
The vault's chrome in one place: hide the ribbon and Obsidian's own controls, and give any folder a colour, an icon and a label. Writes no CSS; the INKLINE theme draws it. Part of the ICOR for Life suite.
Mermaid Link Navigator
2 months ago by w-java123
Quick Zoom
a month ago by 熊猫别熬夜
快速缩放到标题与列表,含粘性导航栏。基于 Obsidian Zoom 二次开发。
Escrita
a month ago by Claudio
Write and revise fiction in Obsidian: outline, goals, revision lens, manuscript export (DOCX, EPUB) and a shared universe. English and Português.
gogoga Mind Map
22 days ago by jackweigogoga
Obsidian plugin: edit Markdown notes as XMind-style mind maps.
Composer
18 days ago by Mario Miletta
Notion-style block handle for Obsidian: + insert menu and block actions.
Wordlist Autocomplete
17 days ago by elouahabi-naoufal
Smart autocomplete for Obsidian using JSON wordlists: prefix/shorthand/contains matching, metadata, contextual learning and ChatGPT wordlist generation.
Native Notes
15 days ago by Pratiyush Tiwari
Apple-inspired styling and editing tools for Obsidian, with five coordinated themes and portable settings.