From 3d67d5e82c96b424c86f7061cefc1a7840c982bb Mon Sep 17 00:00:00 2001 From: Jackson Moore Date: Sat, 5 Sep 2026 14:20:58 +0200 Subject: Create invocation state record --- yazi-enter.yazi/main.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/yazi-enter.yazi/main.lua b/yazi-enter.yazi/main.lua index f9bddc5..d2e79ac 100644 --- a/yazi-enter.yazi/main.lua +++ b/yazi-enter.yazi/main.lua @@ -17,6 +17,7 @@ local EVENT_CANCEL = "cancel" local EVENT_CLOSED = "closed" local UPDATE_SUCCESS = "success" local UPDATE_FAILURE = "failure" +local ERROR_STATUS_CLEAR = false local ACCEPTED_OPTIONS = { previous = true, @@ -217,6 +218,16 @@ local function new_application_boundaries( } end +local function new_invocation_state(intent, receiver) + require_plain_data("invocation intent", intent) + return { + intent = intent, + receiver = receiver, + current_query = "", + error_status = ERROR_STATUS_CLEAR, + } +end + return { entry = function(_, job) return parse_invocation_intent(job.args) -- cgit v1.2.3