This plugin for Obsidian minimizes the application window to the dock or taskbar when all open panes are closed. This behavior is particularly standard on macOS and can now be optionally applied across all platforms.
- MacOS-Standard Behavior: Automatically minimize the Obsidian window when all open panes are closed, consistent with macOS application behavior.
- Cross-Platform Support: Works on macOS, Windows, and Linux. You can choose whether to restrict this behavior to macOS or apply it to all operating systems.
- Configurable Options: Customize the plugin to enable the minimize-on-close behavior only for macOS, or extend it to other platforms based on your preference.
- Command Palette Support: Includes two commands accessible from the command palette:
- Minimize to Icon: Minimize the Obsidian window to the dock or taskbar.
- Exit Obsidian: Completely exit the Obsidian application. These commands can be assigned custom hotkeys for quick access (e.g., "⌘Q" to minimize and "⌘⌥Q" to exit) from the Hotkeys configuration pane.
Either copy the link obsidian://show-plugin?id=minimize-on-close
into your browser or follow the instructions below:
- Open Obsidian.
- Go to
Settings
>Community Plugins
>Browse
. - Search for Minimize on Close.
- Click
Install
, thenEnable
.
- Download the latest release from the GitHub releases page.
- In the release, you'll find the
main.js
andmanifest.json
files. - Copy both
main.js
andmanifest.json
to a new folder in your vault's.obsidian/plugins/
directory (e.g.,.obsidian/plugins/minimize-on-close
). - Enable the plugin in Obsidian via
Settings
>Community Plugins
.
-
Clone this repository or download the source code.
-
Run the following commands to install the necessary dependencies and build the plugin. The build process will generate the
main.js
andmanifest.json
files inside the/dist
subfolder within the repository directory:npm install npm run build
- Once the plugin is installed and enabled, you can configure it in
Settings
>Minimize on Close
. - Choose whether you want the minimize behavior only on macOS (default) or across all platforms.
By default, the plugin mimics macOS behavior, minimizing the Obsidian window when all panes are closed. This provides a consistent experience for Mac users.
- macOS: Tested and works as expected.
- Windows: Tested and works as expected.
- Linux: Tested and works as expected.
Feel free to open an issue or submit a pull request if you encounter any bugs or have suggestions for improvement!
This project is licensed under the MIT License.
I would be grateful for any donation to support the development of this plugin.
- Author: Andrea Alberti
- GitHub Profile: alberti42
- Donations:
Feel free to contribute to the development of this plugin or report any issues in the GitHub repository.