Minimize on Close

by Andrea Alberti
5
4
3
2
1
Score: 33/100

Description

Category: Productivity Tools

The Minimize on Close plugin is a simple yet useful addition to Obsidian, allowing users to customize the behavior of their application window when all open panes are closed. With this plugin, you can choose whether to minimize the window to the dock or taskbar on macOS, or extend this behavior to other platforms like Windows and Linux. The plugin also includes two commands accessible from the command palette: "Minimize to Icon" and "Exit Obsidian", which can be assigned custom hotkeys for quick access. This plugin is a great option for those who want to streamline their workflow and reduce clutter on their desktop.

Reviews

No reviews yet.

Stats

4
stars
1,435
downloads
0
forks
592
days
110
days
591
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
2
total issues
2
open issues
0
closed issues
41
commits

Latest Version

2 years ago

Changelog

Change log

Bug fixes

  • Better handling of window minimization when multiple windows are opened.

README file from

Github

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:

  1. Open Obsidian.
  2. Go to Settings > Community Plugins > Browse.
  3. Search for Minimize on Close.
  4. Click Install, then Enable.

Manual Installation

Option 1: Download Pre-Built Files
  1. Download the latest release from the GitHub releases page.
  2. In the release, you'll find the main.js and manifest.json files.
  3. Copy both main.js and manifest.json to a new folder in your vault's .obsidian/plugins/ directory (e.g., .obsidian/plugins/minimize-on-close).
  4. Enable the plugin in Obsidian via Settings > Community Plugins.
Option 2: Build from Source
  1. Clone this repository or download the source code.

  2. Run the following commands to install the necessary dependencies and build the plugin. The build process will generate the main.js and manifest.json files inside the /dist subfolder within the repository directory:

    npm install
    npm run build
    

Usage

  1. Once the plugin is installed and enabled, you can configure it in Settings > Minimize on Close.
  2. 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: Buy Me a Coffee

Feel free to contribute to the development of this plugin or report any issues in the GitHub repository.

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.