rockbenben42 downloadsAutomatically brings the window to front when modals or notices appear in the background.
English | 中文
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.

Or install directly from the community plugin page.
Download the latest release from GitHub Releases
Extract the downloaded files
Copy the plugin folder to your vault's plugins directory:
YourVault/.obsidian/plugins/bring-to-front/
Restart Obsidian or reload plugins
Enable the plugin in Settings -> Community plugins
Open Settings -> Community plugins -> Bring to Front.
| 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 |
| 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"] |
| 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 |
[Bring to Front] log messagesdocument.querySelector("your-selector") in consolegit 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
MIT
If you encounter any issues or have suggestions, please open an issue on GitHub.