alangrainger / obsidian-lazy-plugins

Load plugins with a delay on Obsidian startup, so that you can get your app startup down into the sub-second loading time.
MIT License
214 stars 1 forks source link

[Feature Request] Provide more triggers on which plugins may be loaded #11

Open clorl opened 1 week ago

clorl commented 1 week ago

Feature Description

Currently, there are a few triggers to choose when to load a plugin: Instant, Short Delay, Long Delay, Disabled. All of them are time-based.

You could implement more trigger types base on Obsidian provided events after which plugins may lazy-load, similarly to neovim's lazy package manager.

For example, a user could set a plugin to load when a specific file is opened, when any file is opened, when entering edit mode, etc.

Here are some examples of triggers that could be implemented :

codey-badger commented 3 hours ago

If there's a roadmap I would like to see this on it.