Alessandro Vettorel61 downloadsA glowing laser pointer that follows your cursor and draws trails that fade away after a set duration.
Author: Alessandro Vettorel
Version: 1.0.2
For: Obsidian (min. v1.13.0)

Laser Pointer is an Obsidian plugin designed for anyone who shares their screen, teaches, presents, records videos, or simply wants to highlight and guide attention to content inside their notes.

When you are on a call, recording a tutorial, or showing your vault to someone, the laser pointer lets you:
It is your virtual laser pointer, right inside Obsidian.

A bright, colored dot follows your mouse everywhere. The system cursor is automatically hidden, leaving only the laser visible — clean, professional, and distraction-free.
Hold down the left mouse button and move: you draw a glowing line that follows your path. Perfect for:
The text underneath is never selected while you draw, so your notes stay clean.
Release the left button and the line stays visible for a configurable duration, then fades away slowly with an elegant fade effect. No manual cleanup needed.
Enable "Persist" from the floating toolbar. When active, every line you draw stays on screen permanently until you exit laser mode. Ideal for building up a full diagram, annotation layer, or complex illustration during a presentation.
Enable "Remember" from the floating toolbar or settings. When active, all your drawn trails are saved when you exit laser mode and automatically restored when you re-enter. Perfect for resuming a presentation or tutorial without redrawing everything.
When activated, the plugin can automatically switch the current note to reading mode so you can draw freely without entering edit mode. When you turn the laser off, the original mode is restored.
Turn the laser off instantly using any of these methods:
No need to hunt for buttons when you are done.
When the laser is on, a compact horizontal toolbar appears at the bottom center of the screen. You can drag it anywhere by grabbing the header. It gives you instant access to all controls without opening Settings.
You can also customize which controls appear on the toolbar from Settings, making it as minimal or as complete as you like.
Switch colors instantly from the toolbar. Out of the box it ships with 11 presets: 🔴 Red · 🟠 Orange · 🟡 Yellow · 🟢 Green · 🔵 Blue · 🟣 Purple · 🩷 Pink · 🟤 Brown · ⚪ Gray · ⚫ Black · ⬜ White
These are just the defaults — go to Settings → Preset colors to add, remove, or recolor entries. The toolbar always shows exactly the colors listed there: keep only 4 if that's all you need, or add as many as you like. A Reset to default colors button brings back the original 11 at any time.
Click the 🎨 button on the toolbar to open the browser's native color picker and choose any color you want.
Move the Width slider on the toolbar to change the stroke thickness on the fly — from an ultra-thin hairline (0.5 px) up to a bold, heavy stroke (40 px).
Move the Hardness slider to control how opaque or transparent the trail is:
Click the ▭ button on the toolbar to switch from freehand trails to a draggable rectangle: click and drag anywhere to draw a rectangle from corner to corner. It follows the same color, width, hardness, and persist/fade behavior as regular trails. Click ▭ again (or enter eraser mode) to go back to freehand drawing.
Click the ╱ button on the toolbar to switch to the straight line tool: click and drag to draw a perfectly straight segment from the starting point to wherever you release the mouse. It follows the same color, width, hardness, and persist/fade behavior as regular trails. Click ╱ again (or enter eraser mode) to go back to freehand drawing. Like the rectangle tool, it's mutually exclusive with the rectangle tool — turning one on turns the other off.
The ⬜ / 🔳 button sits right next to the rectangle tool button and only appears on the toolbar while the rectangle tool is active. It switches new rectangles between filled and outline-only, can be flipped at any time, and the current choice is also saved as the default in Settings. Like every other control, it can be hidden from the toolbar via Toolbar visibility in Settings (it also requires the rectangle tool button itself to be enabled there).
Click the 🧽 button to enter eraser mode. The pointer changes to a ring cursor. Click on any existing trail, rectangle, or line to delete it individually. Click 🧽 again to return to drawing mode.
Click the 🗑️ button to delete all drawn trails, rectangles, and lines instantly — both persistent and saved ones.
Go to Settings → Community Plugins → Laser Pointer to set your defaults:
All settings are saved automatically.
npm install
npm run build
manifest.json, main.js, and styles.css into:.obsidian/plugins/laser-pointer/
inside your vault.Download the latest release from the GitHub releases page and extract the three files (main.js, manifest.json, styles.css) into .obsidian/plugins/laser-pointer/.
| Action | Result |
|---|---|
| Click the 🎯 icon in the sidebar | Toggle laser on / off |
Ctrl+P → "Laser Pointer" |
Toggle from the Command Palette |
| Move the mouse | The laser dot follows you |
| Hold left mouse button | Draw a glowing trail |
| Release the left button | Trail fades after X seconds (or stays if Persist is on) |
| Right-click anywhere | Instantly turn the laser off |
| Press ESC key | Instantly turn the laser off |
| Drag the toolbar header | Move the floating toolbar anywhere |
| Click a color dot on the toolbar | Change laser color instantly |
| Click 🎨 on the toolbar | Open the full color picker |
| Move the Width slider on the toolbar | Adjust trail thickness live |
| Move the Hardness slider on the toolbar | Adjust trail opacity live |
| Click ▭ on the toolbar | Switch between freehand trails and the draggable rectangle tool |
| Click ╱ on the toolbar | Switch between freehand trails and the straight line tool |
| Click ⬜ / 🔳 on the toolbar | Switch new rectangles between outline-only and filled |
| Check "Persist" on the toolbar | Trails stay until you exit laser mode |
| Check "Remember" on the toolbar | Trails are saved and restored across sessions |
| Click 🧽 on the toolbar | Enter eraser mode — click trails to delete them |
| Click 🗑️ on the toolbar | Delete all trails at once |
pointer-events: none, so it does not interfere with normal Obsidian use (clicking links, selecting text, using menus…)preventDefault() so text underneath is never selected while you tracepointer-events: auto on the SVG overlay to allow trail selectionMIT