From 82febd5b45feff3a7a1b65c23f5a8c7f7118a898 Mon Sep 17 00:00:00 2001 From: MasouShizuka Date: Sat, 14 Jun 2025 22:19:16 +0800 Subject: [PATCH] fix: add @ to event name in yazi method --- README.md | 2 +- main.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 183872d..70ffeb7 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,7 @@ The following are the default configurations: require("projects"):setup({ save = { method = "yazi", -- yazi | lua - yazi_load_event = "projects-load", -- event name when loading projects in `yazi` method + yazi_load_event = "@projects-load", -- event name when loading projects in `yazi` method lua_save_path = "", -- path of saved file in `lua` method, comment out or assign explicitly -- default value: -- windows: "%APPDATA%/yazi/state/projects.json" diff --git a/main.lua b/main.lua index ecb3dc1..e76c680 100644 --- a/main.lua +++ b/main.lua @@ -517,7 +517,7 @@ local SUPPORTED_KEYS = { local _load_config = ya.sync(function(state, opts) state.save = { method = "yazi", - yazi_load_event = "projects-load", + yazi_load_event = "@projects-load", lua_save_path = "", } if type(opts.save) == "table" then