Manage plugins¶
Plugins add features to Lore Desktop, such as a new view on a tab or an action on file rows. Use this guide to turn a plugin off or on, see what a plugin does, or install or remove a plugin package someone gave you. Lore Desktop comes with one plugin, Branch Explorer (@lore/branch-explorer in the plugin list), which provides Explorer view on the Branches tab.
Before you start¶
- To install a plugin, you need its plugin package: a
.zipfile, shown as<plugin>.zipin this guide. - A plugin runs code on your computer. We recommend installing packages only from people you trust.
Steps¶
- Open the Plugins screen.
Click the settings cog (Settings), then select Plugins. The cog is in the header of the Repositories page and at the right end of a repository's toolbar.
The Plugins screen fills the window. The plugin list is on the left, and the selected plugin's details are on the right. To leave the screen, click Close (the X button) or press Esc. You can't leave the screen while a plugin is installing.
- Find the plugin.
Next to Installed, a counter shows how many plugins the app has, disabled ones included. To narrow the list:
- Type in Search plugins to match plugin names and descriptions.
- Click Hide disabled (the funnel button) to hide plugins you've turned off. Click it again to show them.
Each row shows the plugin name, its version (for example, v0.1.0), and a short description. A row can also show the Development, Disabled, or Restart to apply tag.
- Read the plugin's details.
Select a plugin in the list. The detail pane shows:
- The plugin name and version
- A source tag: Bundled for a plugin that comes with Lore Desktop, Installed for one you installed from a package, or Development for a linked plugin folder
- The plugin's README, or its description if it has no README
To open the plugin's folder on disk, click Browse plugin.
- Disable or enable the plugin.
In the detail pane, click Disable. You can also click the cog on the plugin's row (Plugin actions) and select Disable. The change takes effect right away. The row dims and shows the Disabled tag, and the button changes to Enable. The plugin stays disabled after you restart the app.
For example, disable @lore/branch-explorer. The Branches tab now opens in List view, and the chevron next to the tab name, which switches between views, no longer appears. Click Enable to bring back Explorer view as the tab's default view.
If the app can't load a plugin's tabs, views, or buttons into the open window, the plugin shows the Restart to apply tag. Close and reopen Lore Desktop to load them.
-
Install a plugin from a package.
-
In the Plugins screen header, click Add plugin (the plus button).
- In the Add plugin dialog, drag
<plugin>.ziponto the drop area, or click browse and select the file. You can add more than one package. If a file isn't a.zip, the dialog shows "Only .zip plugin packages can be installed" and doesn't install it. - Click Install. Each package shows a progress bar and its current phase. The phases run in this order: validating, extracting, checking, installing, and activating. A package that finishes shows "Installed" in place of the phase.
If you already installed a plugin with the same name from a package, a dialog titled Replace <plugin name>? shows the installed version and the version in the package. Click Replace to install over it, or click Cancel to keep the installed version. A cancelled package shows "Cancelled" in place of the phase. A package can't replace a bundled plugin; the install fails instead.
When every package is installed, the dialog closes. The new plugin appears at the top of the list, selected. If an install fails, the package shows "Install failed:" followed by the reason, and the dialog stays open.
If you develop plugins, use Link a plugin folder (development) in the same dialog to load a plugin from a folder instead of a package. To write a plugin, see Build plugins.
- Uninstall a plugin.
Select the plugin, then click Uninstall in the detail pane. You can also click the cog on the plugin's row and select Uninstall. The confirmation dialog warns that the plugin "and its files will be removed from this computer. This action cannot be undone." Click Uninstall to confirm.
Uninstall appears only for plugins with the Installed tag. You can't uninstall a bundled plugin such as @lore/branch-explorer. Disable it instead.
Result¶
The Plugins list shows the plugins you want, each enabled or disabled as you chose, and their features appear in the app.