-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug+FR]: Source repo for unlisted plugin does not change if removed and reinstalled from community plugins #11
Comments
This is also a feature request to get a button or text field to update/change the source repo |
Current work around to reset the repo. Change the repo value in .obsidian\plugins\vare\data.json, save, then reload obsidian |
BUG: FEAT:
I had roughly the same idea that you can also install releases from forks. See #9. Maybe this is anything you need? |
You use app.plugins.installPlugin() under the hood to install the plugin. That method installs the plugin to The problematic behavior that this does cause is that if the manifest.id does not match the plugin listed in VARE, it will install the plugin as an additional plugin (or overwrite a secondary one). To implement the edit button safely, I would enforce that the upstream manifest.id must be equal to the manifest.id of the associated plugin. If the ids mismatch, throw an error message and tell the user to use the add (+) button instead. With that said, I would also specifically enforce that the edit and add buttons be separate:
|
The manifest.dir that you use in your plugin is populated and overwritten at runtime by app.plugins.loadManifests() and app.plugins.loadManifest() |
Also how are themes intended to be installed? I don't see any calls to |
What do you mean? This?
Templates is currently not implemented |
Yup. When Obsidian loads the manifests for either apps.customCss or apps.plugins, it overwrites that JSON property using the manifest.id (plugins) or manifest.name (customCss) I think I see how you are using it though. At first, I thought you were trying to override it by saving it to manifest.json, but it seems you are doing it to emulate Obsidian's functionality. |
It's been a while but with the brief look it seems like I exactly did this |
Describe the bug
I recently forked the teleprompter plugin, and published my own release files for it. To add it into Obsidian I removed the original and added mine as an "unlisted" plugin. After getting my changes implemented on the upstream repo, I removed the unlisted plugin and reinstalled the official one.
However, VARE is still pulling releases from my repo despite reinstalling the plugin.
I recommend setting an option to change/update (and reset if applicable) the source repo in VARE's options
I also recommend showing a hint text that shows the currently selected source repository in addition to these:
How to Reproduce
Fork a plugin. Add the fork as an unlisted repo. Uninstall the plugin. Reinstall the official plugin.
Expected behavior
Update the source repo on reinstallation
OS of your device
Win10
Obsidian Version
v1.6.3
Plugin Version
0.1.1
Additional context
This is a dual bug report + feature request.
I'd like to be able to change the source repo as well.
The text was updated successfully, but these errors were encountered: