diff options
| author | Jackson Moore <jacksonmoore@tuta.io> | 2026-09-05 14:20:58 +0200 |
|---|---|---|
| committer | Jackson Moore <jacksonmoore@tuta.io> | 2026-09-05 14:20:58 +0200 |
| commit | 3d67d5e82c96b424c86f7061cefc1a7840c982bb (patch) | |
| tree | 7e7e4b6ddc096f5d4e95fb1d68f97d506fbb39a0 | |
| parent | fc7967cb40ebffae26e4174608086c9a97dd88dd (diff) | |
Create invocation state record
| -rw-r--r-- | yazi-enter.yazi/main.lua | 11 |
1 files changed, 11 insertions, 0 deletions
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) |