aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2023-01-02 17:52:30 -0500
committerAdam Harrison <adamdharrison@gmail.com>2023-01-02 17:52:30 -0500
commit38bb937a4a205426432472fed60cc335547b0020 (patch)
tree8f8fada5d382b72bf1eb159da819d02362aa9b26
parent18cac21cf3c8dff408ea0e85b6aa7808bd176709 (diff)
downloadlite-xl-plugin-manager-38bb937a4a205426432472fed60cc335547b0020.tar.gz
lite-xl-plugin-manager-38bb937a4a205426432472fed60cc335547b0020.zip
Updated spec to chage to ID.
-rw-r--r--SPEC.md13
1 files changed, 7 insertions, 6 deletions
diff --git a/SPEC.md b/SPEC.md
index 852fb1c..ba7708e 100644
--- a/SPEC.md
+++ b/SPEC.md
@@ -38,7 +38,8 @@ The vast majority of plugins are `singleton` plugins.
### Metadata
-* `name`: The name of the plugin.
+* `id`: The semantic id of the plugin, only containing `[a-z0-9\-_]`.
+* `name`: The optional name of the plugin.
* `version`: The plugin's semantic version.
* `description`: An english-language description of the plugin.
* `mod_version`: The mod_version this plugin is compatible with.
@@ -111,7 +112,7 @@ that any version greater than `0.1` can be used.
{
"plugins": [ # The plugins array contains a list of all plugins registered on this repository.
{
- "name": "plugin_manager", # Unique name, used to reference the plugin.
+ "id": "plugin_manager", # Unique name, used to reference the plugin.
"version": "0.1", # Semantic version.
"description": "A GUI interface to the Adam's lite plugin manager.", # English description of the plugin.
"path": "plugins/plugin_manager", # The path to the plugin in this repository.
@@ -136,7 +137,7 @@ that any version greater than `0.1` can be used.
}
},
{
- "name": "json",
+ "id": "json",
"version": "1.0",
"description": "JSON support plugin, provides encoding/decoding.",
"type": "library",
@@ -151,7 +152,7 @@ that any version greater than `0.1` can be used.
"version": "1.0",
"mod_version": 3,
"remote": "https://github.com/anthonyaxenov/lite-xl-ignore-syntax:2ed993ed4376e1840b0824d7619f2d3447891d3aa234459378fcf9387c4e4680", # The remote to be used for this plugin.
- "name": "language_ignore",
+ "id": "language_ignore",
"post": {"x86-linux":"cp language_ignore.lua /tmp/somewhere-else", "x86-windows":"COPY language_ignore.lua C:\\Users\\Someone\\ignore.lua"} # Post download steps to run to fully set up the plugin. Does not run by default, requires --post.
},
{
@@ -163,12 +164,12 @@ that any version greater than `0.1` can be used.
"version": "1.0",
"mod_version": "3",
"path": "plugins/settings.lua",
- "name": "settings"
+ "id": "settings"
},
{
"description": "Syntax for Kaitai struct files",
"url": "https://raw.githubusercontent.com/whiteh0le/lite-plugins/main/plugins/language_ksy.lua?raw=1", # URL directly to the singleton plugin file.
- "name": "language_ksy",
+ "id": "language_ksy",
"version": "1.0",
"mod_version": 3,
"checksum": "08a9f8635b09a98cec9dfca8bb65f24fd7b6585c7e8308773e7ddff9a3e5a60f", # Checksum for this particular URL.