Focus Mode Banner

approved

by adrianofontanari

This plugin has not been manually reviewed by Obsidian staff. Activates a Focus Mode: a bold banner appears every time you open a note different from the one where you started your focus session.

1 stars299 downloadsUpdated 1mo agoMIT

🎯 Focus Mode Banner — Obsidian Plugin

⚡ 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.


Why

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.


How it works

  1. Open the note you want to focus on
  2. Toggle Focus Mode via the ribbon icon or command palette
  3. Every time you open a different note, a high-visibility banner appears at the top of the editor
  4. The banner auto-dismisses after 5 seconds (configurable), or close it manually with ✕
  5. Toggle off when you're done

Installation (manual)

  1. Go to your vault's .obsidian/plugins/ folder (create it if it doesn't exist)
  2. Create a folder called focus-mode-banner
  3. Copy these 3 files inside:
    • main.js
    • manifest.json
    • styles.css
  4. Restart Obsidian
  5. Go to Settings → Community Plugins and enable Focus Mode Banner

Usage

MethodAction
Ribbon icon (left sidebar)Click the 🎯 icon to toggle
Command paletteCtrl/Cmd + P → "Toggle Focus Mode"

When active, the ribbon icon turns red as a persistent visual indicator.


Settings

Navigate to Settings → Focus Mode Banner to configure:

SettingDescription
Banner messageCustomize the text shown in the warning banner
Auto-dismiss (seconds)How long before the banner disappears automatically. Set to 0 to disable auto-dismiss.

community-plugins.json entry

{
  "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"
}

Author

Made by Adriano Fontanari using Claude Sonnet 4.6 by Antrophic


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.