GithubHelp home page GithubHelp logo

obsidian-macos-last-tab's Introduction

Obsidian MacOS Last Tab

This plugin alters the behavior of closing a last Obsidian tab to match similar behavior of other MacOS apps. Similar to e.g. VS Code, when the last tab is closed, the window will be closed (whilst Obsidian is kept running for faster startup).

Usage

  • Install plugin
  • Map CMD + W to the command Close current tab or close window (if last tab)

obsidian-macos-last-tab's People

Contributors

lishid avatar ericaxu avatar edo78 avatar joriswvanrijn avatar fyears avatar chrisgrieser avatar aidenlx avatar reorx avatar tokuhirom avatar timrogers avatar tfthacker avatar phibr0 avatar taurelas avatar kostapc avatar joethei avatar inouetakuya avatar henrebotha avatar gitmurf avatar clemens-e avatar pozdneev avatar aleksey-rowan avatar

Watchers

 avatar

obsidian-macos-last-tab's Issues

[Feature Requests] Publish Plugin & Keep Vault Open & Double Tap CMD-W

Thanks for creating this plugin! Just got a chance to try it out and worked flawslessly. I have three feature requests; was wondering if you had thoughts on how they could be implemented.

  1. It would be great if you could publish the plugin to the community marketplace whenever you get a chance! Dropping some instructions here in case anyone else has never manually installed an Obsidian plugin before. Run this following commands, then open Obsidian, go to Community Plugins, refresh the list, and enable this plugin. Then update the hotkey to CMD-W as mentioned in the README.

    git clone https://github.com/joriswvanrijn/obsidian-macos-last-tab.git
    cd obsidian-macos-last-tab
    
    npm run build
    mkdir obsidian-macos-last-tab
    mv main.js manifest.json obsidian-macos-last-tab/
    
    # update destination to match your obsidian vault location
    cp -R obsidian-macos-last-tab ~/Obsidian/.obsidian/plugins/obsidian-macos-last-tab
  2. To match macOS better, it would be great to have a setting to change behavior to first close the last tab normally and then pressing CMD-W again would close the window. A similar setting was implemented recently in Zed here: zed-industries/zed#11989

  3. A setting to keep the vault open when the window is closed? This could be as simple as emulating CMD-H to hide the window instead of closing it entirely so that obsidian doesn't need to spend time loading the workspace into memory again. This is similar to other programs on macOS that keep running in the background when the window is closed with fast loading time when the window is re-opened.

Related Links:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.