Mobile Toolbar Utilities
approvedby Buckley Research Ltd
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. - This plugin has not been manually reviewed by Obsidian staff.
Mobile Toolbar Utilities
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.
Adding the button to the mobile toolbar
Obsidian has no API that lets a plugin place its own button on the mobile toolbar, so this is a one-time manual step:
- Install and enable the plugin.
- On mobile, open Settings → Toolbar.
- Scroll to the bottom of Manage toolbar options and tap Add global command.
- Search for the command you want (
Delete current line,Send current line to another file, orToggle current line as a checkbox) and select it. - Drag it to wherever you want it in the toolbar order.
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.
Behaviour
Delete current line
- No selection — deletes the line the cursor is on, including its trailing newline.
- With a selection — deletes every line the selection touches, matching the
Ctrl+Shift+Kbehaviour 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. - Deleting through the last line consumes the preceding newline instead, so you're never left with a stray blank line. Deleting the only line empties the note.
- The cursor stays on the start line (clamped into the shortened note) and keeps its column where possible.
- The whole thing is one editor transaction, so a single undo puts it all back.
Only the primary selection is acted on; multiple cursors are not supported.
Send current line to another file
- Acts on the same line (or set of lines) that Delete current line would, using the exact same selection rules.
- Opens a fuzzy search over the markdown files in your vault (the active note is excluded). Pick one and the line is appended to the end of that file, on its own line, then removed from the current note — i.e. it's a move, not a copy.
- Exactly one line break is kept before the appended text, whether or not the target file already ends in a newline, so nothing runs together.
- If the target file can't be written, a notice is shown and the line is left in place.
- Removal from the source uses the same single-transaction delete, so undo restores the line in the source note (it does not un-append it from the target).
Toggle current line as a checkbox
- Acts on the same line (or set of lines) as the other commands, using the same selection rules.
- A plain line becomes an unchecked task item —
- [ ] …— preserving any leading indentation. An existing-,*, or+bullet is reused rather than doubled up. - A line that is already a checkbox (checked or unchecked) is stripped back to plain text, dropping the marker and keeping its indentation.
- Each line toggles independently, so a mixed selection flips each line to its opposite.
- The whole change is one editor transaction, so a single undo reverts it.
Installation
From the community plugin store
Not yet listed.
Manually
- Download
main.jsandmanifest.jsonfrom the latest release. - Put them in
<your vault>/.obsidian/plugins/mobile-toolbar-utilities/. - Reload Obsidian and enable Mobile Toolbar Utilities under Settings → Community plugins.
Development
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).
License
MIT
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.