Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Line Mover

loulan23253loulan2325342 downloads

Move lines up and down with Alt+↑/↓. Supports smart movement for list items and heading blocks.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates3

An Obsidian plugin that moves lines and blocks up and down with Alt + ↑/↓, with smart handling of list hierarchies, heading sections, and code blocks.

Features

  • Smart movement (Alt + ↑/↓): moves the whole block under your cursor
    • A list item moves together with all its nested children
    • A heading moves together with its entire section (until the next heading of the same or higher level)
    • A fenced code block moves as one atomic unit — content inside is never parsed as lists or headings
  • Single-line movement (Alt + Shift + ↑/↓): moves only the current line, ignoring children
  • Multi-line selection: select several lines and move them as one block
  • Structure safety: swapping never breaks list nesting — a sibling item swaps with the entire previous sibling block, not just its last child
  • Spacing preservation: blank lines between blocks stay between them instead of traveling with the moved block

Settings

  • Smart movement: when enabled (default), the smart commands move whole blocks; when disabled, they move single lines. The single line commands always move only the current line.

Usage

The plugin registers four editor commands but does not assign default hotkeys, to avoid conflicts with your existing setup. Open Settings → Hotkeys, search for "Line Mover" and assign keys — recommended bindings:

Suggested hotkey Command Action
Alt + ↑ Move line up (smart, with children) Move block up, including nested children
Alt + ↓ Move line down (smart, with children) Move block down, including nested children
Alt + Shift + ↑ Move line up (single line only) Move only the current line up
Alt + Shift + ↓ Move line down (single line only) Move only the current line down

Then place the cursor on a line (or select lines) and use the hotkeys.

Installation

From Community Plugins (after approval)

Open Settings → Community plugins → Browse, search for Line Mover and install.

Manual installation

Copy main.js and manifest.json into <vault>/.obsidian/plugins/line-mover/ and reload Obsidian.

Development

npm install
npm run dev     # watch mode
npm run build   # production build

License

MIT

HealthExcellent
ReviewSatisfactory
About
Move lines and blocks up or down with Alt+↑/↓ while preserving list hierarchies, entire heading sections, and fenced code blocks as atomic units. Move single lines or multi-line selections independently with Alt+Shift+↑/↓, keeping sibling structure and blank-line spacing intact.
EditingOutliningHotkeys
Details
Current version
1.2.2
Last updated
6 days ago
Created
6 days ago
Updates
3 releases
Downloads
42
Compatible with
Obsidian 1.0.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
loulan23253loulan23253
GitHubloulan23253
  1. Community
  2. Plugins
  3. Editing
  4. Line Mover

Related plugins

Outliner

Work with your lists like in Workflowy or Roam Research.

Emoji Toolbar

Quickly search for and insert emojis into your editor.

Shortcuts extender

Use shortcuts for input special symbols without language switching.

Keyshots

Add classic hotkey/shortcuts commands from popular IDEs like Visual Studio Code or JetBrains Family.

Code Editor Shortcuts

Add keyboard shortcuts (hotkeys) commonly found in code editors such as Visual Studio Code (VS Code) or Sublime Text.

LanguageTool Integration

Advanced grammar and spell checking, powered by LanguageTool.

Meta Bind

Make your notes interactive with inline input fields, metadata displays, and buttons.

Advanced Tables

Improved table navigation, formatting, and manipulation.

Thino

Quickly capture memos and display them in the sidebar with a heatmap. (Closed source)

Editing Toolbar

The Editing Toolbar is modified from cMenu, which provides more powerful customization settings and has many built-in editing commands to be a MS Word-like toolbar editing experience.