Mobile-toolbar commands to delete the current line, send it to another file, or turn it into a checkbox. Fully vibe coded; see the README before use.
An Obsidian plugin that adds a Delete current line command, a Send current line to another file command, and a Toggle current line as a checkbox command, built for the mobile editing toolbar.
Obsidian ships Delete paragraph (Ctrl/Cmd+Shift+K), but that removes the entire
paragraph — on a multi-line paragraph it takes far more than you meant. Delete current line
removes exactly the line you're on. Send current line to another file does the same but
first appends the line to a note you pick — handy for flicking a line into an inbox or daily
note from the mobile toolbar. Toggle current line as a checkbox turns the line into an
unchecked task (- [ ] …), or strips it back to plain text if it's already a checkbox.
[!NOTE] This plugin was fully vibe coded. Every line of it — the plugin logic, the build scaffolding, this README — was written by Claude from a plain-English description, not hand-written. It has been tested, in the sense that the deletion logic was exercised against a mock editor across the edge cases listed under Behaviour, and the plugin was used by hand on desktop and on mobile. It has not been through a line-by-line human code review.
It's a small plugin that edits your notes. Read
src/main.ts— it's about 170 lines — and decide for yourself before pointing it at anything you'd hate to lose.
Obsidian has no API that lets a plugin place its own button on the mobile toolbar, so this is a one-time manual step:
Delete current line, Send current line to another file,
or Toggle current line as a checkbox) and select it.The buttons use a trash icon, a file-symlink icon, and a checklist icon respectively. On desktop the commands are also available from the command palette, and you can bind hotkeys to them under Settings → Hotkeys.
Ctrl+Shift+K behaviour in VS Code and Sublime Text. A selection that stops at column 0
of a line does not count as touching that line, so it's left alone.Only the primary selection is acted on; multiple cursors are not supported.
- [ ] … — preserving any leading
indentation. An existing -, *, or + bullet is reused rather than doubled up.Not yet listed.
main.js and manifest.json from the latest release.<your vault>/.obsidian/plugins/mobile-toolbar-utilities/.npm install
npm run dev # rebuild on change
npm run build # typecheck + production bundle
npm run lint
To test the mobile toolbar without a phone, open the developer console on desktop and run
this.app.emulateMobile(true) (false to switch back).
MIT