From dd8208514ff60fba0d528255470edfeb30dd0b5f Mon Sep 17 00:00:00 2001 From: Andrew Davis Date: Sat, 15 Feb 2025 12:31:53 -0500 Subject: [PATCH] Move README to help file and import it into the help system this commit is based on the OpenInTab PR from github.com/X-Ryl669 --- filemanager-plugin/CHANGELOG.md | 8 ++++++++ filemanager-plugin/filemanager.lua | 7 +++++-- filemanager-plugin/{README.md => help/filemanager.md} | 0 filemanager-plugin/repo.json | 7 +++++++ 4 files changed, 20 insertions(+), 2 deletions(-) rename filemanager-plugin/{README.md => help/filemanager.md} (100%) diff --git a/filemanager-plugin/CHANGELOG.md b/filemanager-plugin/CHANGELOG.md index 46d51c4..338fbd6 100644 --- a/filemanager-plugin/CHANGELOG.md +++ b/filemanager-plugin/CHANGELOG.md @@ -6,6 +6,14 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a ## [Unreleased] +## [3.5.2.1] - 2025-02-15 + +- Move README to help file and import it into the help system + +## [3.5.2] - 2023-09-14 + +- Allow filemanager to open files in new tab, either using Tab or Enter + ## [3.4.0] - 2018-10-22 ### Fixed diff --git a/filemanager-plugin/filemanager.lua b/filemanager-plugin/filemanager.lua index 754a461..e685b6a 100644 --- a/filemanager-plugin/filemanager.lua +++ b/filemanager-plugin/filemanager.lua @@ -1,4 +1,4 @@ -VERSION = "3.5.2" +VERSION = "3.5.2.1" local micro = import("micro") local config = import("micro/config") @@ -528,7 +528,7 @@ local function try_open_at_y(y) -- If it's a file, then open it micro.InfoBar():Message("Filemanager opened ", scanlist[y].abspath) -- Opens the absolute path in new tab or a new split - if config.GetGlobalOption("filemanager.openontab") then + if config.GetGlobalOption("filemanager.openontab") then -- CurView():VSplitIndex(NewBufferFromFile(scanlist[y].abspath), 1) local nfile = scanlist[y].abspath local rpath = shell.RunCommand('realpath \'' .. nfile .. '\' --relative-to=\'' .. os.Getwd() .. '\'') @@ -1394,6 +1394,9 @@ function init() -- TODO: Change it to work with git, based on untracked/changed/added/whatever config.AddRuntimeFile("filemanager", config.RTSyntax, "syntax.yaml") + -- Add the help file + config.AddRuntimeFile("filemanager", config.RTHelp, "help/filemanager.md") + -- NOTE: This must be below the syntax load command or coloring won't work -- Just auto-open if the option is enabled -- This will run when the plugin first loads diff --git a/filemanager-plugin/README.md b/filemanager-plugin/help/filemanager.md similarity index 100% rename from filemanager-plugin/README.md rename to filemanager-plugin/help/filemanager.md diff --git a/filemanager-plugin/repo.json b/filemanager-plugin/repo.json index 2757003..49ae220 100644 --- a/filemanager-plugin/repo.json +++ b/filemanager-plugin/repo.json @@ -46,6 +46,13 @@ "Require": { "micro": ">=2.0.0-1" } + }, + { + "Version": "3.5.2.1", + "Url": "https://github.com/micro-editor/updated-plugins/releases/download/v1.0.0/filemanager-3.5.2.1.zip", + "Require": { + "micro": ">=2.0.0-1" + } } ] }