Can I suspend plugin activity if app is not in focus?/How are 'file-edits' detected #746
Unanswered
Gewerd-Strauss
asked this question in
Problems
Replies: 1 comment 4 replies
-
I definitely want the backup to be run after the 5 minutes, even if Obsidian is in background. I could only think of ignoring modify events if Obsidian is in background, but I'm unsure whether this is a good idea or not. And probably wouldn't even solve your issue, right? So I don't think there's a solution to your problem other than closing Obsidian while doing that work or increasing the timers. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have a bit of a peculiar issue right now.
I have a vault I sync via obsidian-git, but it also hosts a quarto-website-project.
This means I use both VS Code and Obsidian for working - Obsidian for writing, VS Code for scripting, automation, ...
While I work in VSCode, I often make specific commits which change project-structure, update configuration or script-files. These commits are hand-curated.
At the same time, Obsidian is running in the background, with the
obsidian-git
-plugin, and this poses some problems. I have the plugin configured to run 5 minutes after last change occured.This poses a unique issue, because while selectively managing the project in VSCode,
obsidian-git
can end up committing and pushing stuff if I take too long without saving a file in VSC manually.Would it be possible to only trigger the execution-routine if the obsidian-application is active/is in focus? In principle such an option would solve this issue - but I am also completely aware that this is a super niche issue.
Thank you.
Sincerely,
~Gw
Beta Was this translation helpful? Give feedback.
All reactions