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 Commands

charliecmcharliecm3k downloads

Adds commands to quickly select, copy, cut, and paste lines under the selection or cursor.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates4

An Obsidian plugin that adds the following commands:

  • Select lines: Selects the lines under the selection or cursor.
  • Copy lines: Copies the lines under the selection or cursor.
  • Cut lines: Cuts the lines under the selection or cursor.
  • Paste before line: Pastes the clipboard text in the line above the cursor.
  • Paste after line: Pastes the clipboard text in the line below the cursor.
  • Insert line above: Inserts a new, empty line above the cursor line, continuing any list or checkbox marker.
  • Insert line below: Inserts a new, empty line below the cursor line, continuing any list or checkbox marker.
  • Duplicate lines: Copies the lines under the selection and pastes them in the line below the cursor.
Icons for each of the commands listed above

Demo video

I wrote this plugin because I wanted a quick way to cut a line on mobile. However, the default cut command doesn't behave the way it does on desktop (cutting the entire line under the cursor when there's no selection). Therefore, the “cut lines” command makes it easier for me to move lines quickly without needing to painstakingly select lines accurately with my fingers.

You can add these commands to your toolbar on mobile to easily access them.

How to Install

From inside Obsidian…

  1. Go to Settings → Community plugins.
  2. Disable Safe mode.
  3. Click Browse, search for Line Commands, and click Install.
  4. Click the toggle button to enable the plugin.

For manual installation, download this repo and copy over main.js and manifest.json to your vault: VaultFolder/.obsidian/plugins/obsidian-line-commands/.

Development

  1. Clone this repo.
  2. npm install to install dependencies.
  3. npm run dev to start compilation in watch mode.
  4. bash install-built.sh /path/to/your/vault -d to create symbolic links of built files to your vault for quick development.

Release

  1. Run npm run build.
  2. Run npm version [patch/minor/major] to bump version in manifest.json and versions.json.
  3. Add changes in CHANGELOG.md.
  4. Add a new version tag and push it.
    git tag -a 1.0.1 -m "1.0.1"
    git push origin 1.0.1
    
  5. Go to “Releases” in GitHub and edit the latest release (created by GitHub Actions). Insert the changelog texts in the description and ensure main.js and manifest.json are attached.
  6. Click “Publish release”.

Support

If you really like this plugin and want to support its development, please consider buying me a coffee 🙂 Thanks!

HealthExcellent
ReviewPassed
About
Select, copy, cut, duplicate, and paste whole lines or current selections with dedicated commands. Paste above or below the cursor and cut lines without selecting for faster line editing on mobile and desktop.
Commands
Details
Current version
1.3.0
Last updated
Last month
Created
3 years ago
Updates
4 releases
Downloads
3k
Compatible with
Obsidian 0.15.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Sponsor
Buy Me a Coffee
Author
charliecmcharliecm
github.com/charliecm
GitHubcharliecm
  1. Community
  2. Plugins
  3. Commands
  4. Line Commands

Related plugins

Quick Switcher++

Enhanced Quick Switcher, search open panels, and symbols.

Copilot

Run AI agents such as Claude Code, Codex, and OpenCode inside your vault. Turn your second brain into a smart assistant that gets knowledge work done.

Find orphaned files and broken links

Find files that are not linked anywhere and would otherwise be lost in your vault. In other words: files with no backlinks.

Note Toolbar

Add customizable toolbars to your notes.

Commander

Customize your workspace by adding commands everywhere, create macros and supercharge your mobile toolbar.

Sort and Permute lines

Sort and Permute lines in whole file or selection.

Tab Switcher

Switch your tabs with Ctrl + Tab in recently used order like in a browser.

Heading Shifter

Easily Shift and Change Markdown headings.

Lean Terminal

Embedded terminal panel powered by xterm.js and node-pty - no external windows.

Actions URI

Add additional `x-callback-url` endpoints to the app for common actions — it's a clean, super-charged addition to Obsidian URI.