loulan2325342 downloadsMove lines up and down with Alt+↑/↓. Supports smart movement for list items and heading blocks.
An Obsidian plugin that moves lines and blocks up and down with Alt + ↑/↓, with smart handling of list hierarchies, heading sections, and code blocks.
Alt + ↑/↓): moves the whole block under your cursorAlt + Shift + ↑/↓): moves only the current line, ignoring childrenThe 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.
Open Settings → Community plugins → Browse, search for Line Mover and install.
Copy main.js and manifest.json into <vault>/.obsidian/plugins/line-mover/ and reload Obsidian.
npm install
npm run dev # watch mode
npm run build # production build