Plugin Update Locker

by Lemon695
5
4
3
2
1
Score: 32/100

Description

The Plugin Update Locker plugin allows users to prevent specified plugins in Obsidian from updating, ensuring they remain on a stable version. This helps avoid compatibility issues or unwanted feature changes caused by updates. The plugin achieves this by modifying the version number in the plugin's manifest.json file, bypassing Obsidian's update detection. Users can lock or unlock updates for individual plugins through a configuration page, enabling greater control over their plugin versions. This is particularly useful for users who rely on specific plugin functionalities and want to delay updates until stability is confirmed.

Reviews

No reviews yet.

Stats

6
stars
388
downloads
0
forks
451
days
458
days
459
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
1
total issues
1
open issues
0
closed issues
10
commits

Latest Version

a year ago

Changelog

Optimize code

README file from

Github

Plugin Update Locker

English | 中文

It can prevent specified plugins in Obsidian from updating, ensuring that these plugins run stably on a specific version and avoiding compatibility issues or feature changes caused by updates.

Obsidian does not directly provide an interface to block updates. Therefore, by modifying the specified plugin's version in the manifest.json, we can bypass the software's update detection mechanism and achieve the goal of preventing plugin updates.

sidebar-1

As shown in the image above, when clicking the "Check for updates" button during the plugin update process, the system checks for all updatable plugins and proceeds to update them.

Currently, the plugin modifies the specified plugin's manifest.json file to change its version, effectively bypassing the plugin update detection.

Usage

Plugin Configuration Page

sidebar-1

The plugin configuration page displays all the plugins and allows users to configure whether to lock their updates.

Lock Plugin Updates

  • 1、For example: For the "Actions URI" plugin, click the button to select Lock Update. The plugin version will change from 1.6.5 to 9999.1.6.5.
  • 2、When clicking the "Check for updates" button again, the plugin will not be detected or updated as long as its version is less than 9999.1.6.5.

Unlock Plugin Updates

  • 1、For example: For the "Actions URI" plugin, click the button to select Cancel Lock Update. The plugin version will change from 9999.1.6.5 back to 1.6.5.
  • 2、When clicking the "Check for updates" button again, if a new version is available, it will be detected, and the plugin can be updated.

Reason for Plugin Development and Its Purpose

Currently, I want to ask questions and receive replies from AI models like ChatGPT and save them as notes for easier record-keeping and review later.

I ultimately chose to use the obsidian-smart-connections plugin. However, after upgrading the plugin from version 2.2.85 to 2.3.42, I found that there were significant changes between these two versions.

The "Custom API (OpenAI format)" configuration that I frequently used was removed, which caused issues with customizing interfaces like ChatGPT's API.

This led me to the idea of adding a plugin update lock feature to prevent sudden changes caused by updates, allowing me to wait until future versions stabilize before removing the lock.

sidebar-1

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.