Obsidian Minimize on close plugin

Thanks for testing the plugin. I am not sure though I understood your point.

With my plugin, you can press Cmd-w to close all open tabs. When the last one is closed, then Obsidian minimizes, but it still runs in the background. It is true that without the plugin, after having close all tabs by pressing Cmd-w, one can press Cmd-m to minimize the window.

My goal was to make a simple plugin that minimizes effort of the user and distractions, and just rely on established muscle memory of Mac users, who expect a certain behavior.

Perhaps on a related note, I recently wanted to modify the behavior of when we click on the red button in the upper left corner. This should minimize Obsidian instead of closing it. Of course one can press on the yellow button instead of the red, but for some reaons, in Apple apps, the red button has become effectively identical to the yellow button. I opened a new thread to discuss this.