Minimize on Close
approvedby Andrea Alberti
Minimizes the app window to an icon after closing the last open pane
Obsidian plugin: Minimize on Close
Overview
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.
Features
- 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.
Installation
From Obsidian Community Plugins
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.
Manual Installation
Option 1: Download Pre-Built Files
- Download the latest release from the GitHub releases page.
- In the release, you'll find the
main.jsandmanifest.jsonfiles. - Copy both
main.jsandmanifest.jsonto 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.
Option 2: Build from Source
-
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.jsandmanifest.jsonfiles inside the/distsubfolder within the repository directory:npm install npm run build
Usage
- 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.
MacOS Behavior (Default)
By default, the plugin mimics macOS behavior, minimizing the Obsidian window when all panes are closed. This provides a consistent experience for Mac users.
Compatibility
- macOS: Tested and works as expected.
- Windows: Tested and works as expected.
- Linux: Tested and works as expected.
Contribution
Feel free to open an issue or submit a pull request if you encounter any bugs or have suggestions for improvement!
License
This project is licensed under the MIT License.
Donations
I would be grateful for any donation to support the development of this plugin.
Author
- 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.
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.
