obsidian-git
obsidian-git copied to clipboard
FR: make startup-routine interruptible via key-detection
This is related to a frustrating pain I have regularly.
Background: I regularly need to sync between 3 different PCs, and use obsidian git for doing so - and to keep a really nice changelog, should I ever accidentally screw things up.
However, I need automatic push/pull & prefer having pull on startup active as I need to switch both devices and vaults quite frequently.
However, sometimes I need to restart the app, and simultaneously do not want to commit current changes - this often happens when debugging weird plugin issues, or accidentally pasting stuff into it that I do not want to put into online storage.
The current process is
- Kill program
- go into airplane mode to suppress obsidian sync from syncing said changes
- manually edit the comminuty-plugins to disable obsidian-git
- restart obsidian
- remove the infringing info
- reenable other those plugins
Out of all of these steps, disabling obsidian-git is by far he most annoying to perform.
I would thus ask for the inclusion of a simple check on startup, which either aborts the plugin entirely with a big warning, or manually overrides settings for the next X minutes so as to not commit, pull or push anything, if a specific button (e.g. Escape) is held when the plugin starts.
So that f.e. holding down escape while starting the app would give the user a f.e. 5 minute timer to get into settings and simply disable the plugin, or disregard. Disregarding would result in the plugin to wait said 5 minutes, and then continuing as if nothing had ever happened.
Thank you.
Sincerely,
~Gw