diff options
-rw-r--r-- | README.md | 7 | ||||
-rw-r--r-- | src/lpm.lua | 4 |
2 files changed, 7 insertions, 4 deletions
@@ -12,7 +12,8 @@ Also contains a plugin_manager.lua plugin to integrate the binary with lite in the form of an easy-to-use GUI. By default in releases, `lpm` will automatically consume the specification -in the `latest` branch of this repository. +in the `latest` branch of this repository, which corresponds to the most +recent versioned release. Conforms to [SCPS3](https://github.com/adamharrison/straightforward-c-project-standard#SCPS3). @@ -53,7 +54,9 @@ gcc src/lpm.c lib/microtar/src/microtar.c -Ilib/microtar/src -lz -lgit2 \ ``` CI is enabled on this repository, so you can grab Windows and Linux builds from the -`continuous` [release page](https://github.com/lite-xl/lite-xl-plugin-manager/releases/tag/continuous). +`continuous` [release page](https://github.com/lite-xl/lite-xl-plugin-manager/releases/tag/continuous), +which is a nightly, or the `latest` [release page](https://github.com/lite-xl/lite-xl-plugin-manager/releases/tag/latest), +which holds the most recent released version. You can get a feel for how to use `lpm` by typing `./lpm --help`. diff --git a/src/lpm.lua b/src/lpm.lua index b131807..fcfef99 100644 --- a/src/lpm.lua +++ b/src/lpm.lua @@ -1101,7 +1101,7 @@ function Bottle:all_plugins() } for i, plugin_path in ipairs(common.grep(plugin_paths, function(e) return system.stat(e) end)) do for j, v in ipairs(system.ls(plugin_path)) do - local id = v:gsub("%.lua$", "") + local id = v:gsub("%.lua$", ""):lower():gsub("[a-z0-9%-_]", "") local path = plugin_path .. PATHSEP .. v local matching = hash[id] and common.grep(hash[id], function(e) return not Plugin.is_plugin_different(e.local_path, path) end)[1] if i == 2 or not hash[id] or not matching then @@ -1422,7 +1422,7 @@ local function lpm_plugin_list(id) if VERBOSE then if i ~= 0 then print("---------------------------") end print("ID: " .. plugin.id) - print("Name: " .. plugin.name) + print("Name: " .. (plugin.name or plugin.id)) print("Version: " .. plugin.version) print("Status: " .. plugin.status) print("Author: " .. (plugin.author or "")) |