Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Bring to Front

rockbenbenrockbenben42 downloads

Automatically brings the window to front when modals or notices appear in the background.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates13

English | 中文

Description

When Obsidian is in the background and a modal or notice appears, this plugin automatically brings the window to the foreground. Zero configuration needed — install, enable, and it just works. Optionally filter by keywords and watch scope to trigger only on specific content.

Desktop only (Windows / macOS / Linux). Requires Electron APIs for window management.

demo

Key features

  • Auto bring-to-front: When Obsidian is in the background, automatically brings the window to front on new modals or notices
  • Keyword filtering: Optional comma-separated keywords to trigger only on specific content
  • Flexible watch scope: Monitor modals, notices, both, or custom CSS selectors
  • Cooldown protection: Configurable minimum focus interval to avoid focus thrashing
  • Bilingual UI: Full English/Chinese support with auto detection

Installation

Method 1: Obsidian community plugins (recommended)

  1. Open Settings -> Community plugins
  2. Make sure Restricted mode is off, then click Browse
  3. Search for "Bring to Front" and click Install
  4. Click Enable

Or install directly from the community plugin page.

Method 2: Manual installation

  1. Download the latest release from GitHub Releases

  2. Extract the downloaded files

  3. Copy the plugin folder to your vault's plugins directory:

    YourVault/.obsidian/plugins/bring-to-front/
    
  4. Restart Obsidian or reload plugins

  5. Enable the plugin in Settings -> Community plugins

Configuration

Open Settings -> Community plugins -> Bring to Front.

Settings

Setting Description Default Range
Language Interface language Auto-detect Auto / English / 中文
Keywords Comma-separated keywords to filter triggers, case-insensitive (empty = match all) Empty Any text
Watch scope Which DOM elements to monitor Modals & notices Modals / Notices / Both / Custom
Custom CSS selector Custom selector (only when scope = Custom) Empty Valid CSS selector
Focus cooldown Minimum seconds between focus actions (0 = no cooldown) 5 seconds >= 0
Debug mode Log matching details to console Disabled On / Off

Usage examples

Use case Keywords Watch scope
Any modal/notice (leave empty) Both
Reminder popup Snooze, Done Modals
Error alerts error, failed Notices
Specific plugin (leave empty) Custom: [data-type="my-plugin"]

Tips

  • Shorter focus cooldown (1-30 s) = for frequent triggers
  • Longer focus cooldown (>= 120 s) = less intrusive

How it works

  1. MutationObserver: Watches the DOM in real time for new elements matching the configured scope
  2. Keyword matching: If keywords are configured, the element's text content is checked against them
  3. Cooldown check: Ensures minimum interval between consecutive focus actions
  4. Bring to front: Raises the Obsidian window via Electron APIs (restore, show, alwaysOnTop trick, focus)

Troubleshooting

Issue Possible Cause Solution
Too frequent focusing Focus cooldown too short Increase focus cooldown
Not detecting Wrong scope or keywords Check settings; try empty keywords with "Both" scope
Language not switching Cache/reload issue Restart Obsidian after changing language

Debug steps

  1. Enable debug mode in settings
  2. Open devtools console (Ctrl+Shift+I)
  3. Trigger the condition you expect to match
  4. Check console for [Bring to Front] log messages
  5. Verify the CSS selector matches by running document.querySelector("your-selector") in console

Development

git clone https://github.com/rockbenben/bring-obsidian-to-front.git
cd bring-obsidian-to-front
npm install
npm run dev    # Dev build with hot reload
npm run build  # Production build

License

MIT

Support

If you encounter any issues or have suggestions, please open an issue on GitHub.

99%
HealthExcellent
ReviewPassed
About
Bring Obsidian to the foreground automatically when a modal or notice appears while the app is in the background. Filter triggers by keywords or DOM scope and set a cooldown to avoid repeated focus events; works on Windows, macOS, and Linux.
InterfaceAutomation
Details
Current version
2.0.5
Last updated
6 days ago
Created
8 months ago
Updates
13 releases
Downloads
42
Compatible with
Obsidian 0.15.0+
Platforms
Desktop only
License
MIT
Report bugRequest featureReport plugin
Author
rockbenbenrockbenben
github.com/rockbenben
GitHubrockbenben
  1. Community
  2. Plugins
  3. Interface
  4. Bring to Front

Related plugins

Hide Sidebars on Window Resize

Automatically hides the sidebars when your window is narrow on window resize.

QuickAdd

Quickly add new notes or content to your vault.

Templater

Create and use dynamic templates.

Homepage

Open a note, base, or workspace on startup, or set it for quick access later.

Hider

Hide interface elements such as tooltips, status bar, titlebar, and more.

BRAT

Easily install a beta version of a plugin for testing.

Meta Bind

Make your notes interactive with inline input fields, metadata displays, and buttons.

Commander

Customize your workspace by adding commands everywhere, create macros and supercharge your mobile toolbar.

Readwise Official

Sync highlights from Readwise to your vault.

Agent Client

Chat with Claude Code, Codex, Gemini CLI, and more via the Agent Client Protocol — right from your vault.