Skip to content

Commit

Permalink
Macrobrowser: refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
shmuz committed Sep 1, 2024
1 parent 05c4950 commit e086397
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion plugins/luamacro/_globalinfo.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function export.GetGlobalInfo()
return {
Version = { 3, 0, 0, 847 },
Version = { 3, 0, 0, 848 },
MinFarVersion = { 3, 0, 0, 6327 },
Guid = win.Uuid("4EBBEFC8-2084-4B7F-94C0-692CE136894D"),
Title = "LuaMacro",
Expand Down
4 changes: 4 additions & 0 deletions plugins/luamacro/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
shmuel 2024-09-01 22:41:48+03:00 - build 848

1. Macrobrowser: refactoring.

shmuel 2024-08-17 10:06:48+03:00 - build 847

1. LuaFAR:
Expand Down
2 changes: 1 addition & 1 deletion plugins/luamacro/luafar/version.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#include <farversion.hpp>

#define PLUGIN_BUILD 847
#define PLUGIN_BUILD 848
11 changes: 7 additions & 4 deletions plugins/luamacro/mbrowser.lua
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,13 @@ local CmpFuncs = {
function (a,b) return LStricmp(a.description,b.description) > 0 end, "3↑", "3↓" },
}

local Data = mf.mload("LuaMacro", "MacroBrowser")
local SortKey = Data and Data.SortKey or "C+F1"
local InvSort = Data and Data.InvSort or 1
local ShowOnlyActive = Data and Data.ShowOnlyActive
local Data = mf.mload("LuaMacro", "MacroBrowser") or {}
local SortKey = Data.SortKey
local InvSort = Data.InvSort
local ShowOnlyActive = Data.ShowOnlyActive

if SortKey ~= "C+F1" and SortKey ~= "C+F2" and SortKey ~= "C+F3" then SortKey = "C+F1" end
if InvSort ~= 1 and InvSort ~= 2 then InvSort = 1 end

local function ShowHelp()
far.Message(
Expand Down

0 comments on commit e086397

Please sign in to comment.