adrianofontanari307 downloadsActivates a Focus Mode: a bold banner appears every time you open a note different from the one where you started your focus session.
⚡ Vibe coded solution by Adriano Fontanari
A lightweight Obsidian plugin that helps you stay anchored to your current note. When Focus Mode is active, a bold warning banner appears every time you navigate away to a different note — a visual interruption to make you think twice before losing context.
You open a note with a clear intention. Then one link leads to another, and five minutes later you've forgotten what you were doing. Focus Mode Banner makes that drift visible and deliberate.
.obsidian/plugins/ folder (create it if it doesn't exist)focus-mode-bannermain.jsmanifest.jsonstyles.css| Method | Action |
|---|---|
| Ribbon icon (left sidebar) | Click the 🎯 icon to toggle |
| Command palette | Ctrl/Cmd + P → "Toggle Focus Mode" |
When active, the ribbon icon turns red as a persistent visual indicator.
Navigate to Settings → Focus Mode Banner to configure:
| Setting | Description |
|---|---|
| Banner message | Customize the text shown in the warning banner |
| Auto-dismiss (seconds) | How long before the banner disappears automatically. Set to 0 to disable auto-dismiss. |
{
"id": "focus-mode-banner",
"name": "Focus Mode Banner",
"author": "Adriano Fontanari",
"description": "Activates a Focus Mode: a bold banner appears every time you open a note different from the one where you started your focus session.",
"repo": "adrianofontanari/obsidian-focus-mode-banner"
}
Made by Adriano Fontanari using Claude Sonnet 4.6 by Antrophic
MIT