From 00f16475db99f40c37dced20aa5ce37e568a4200 Mon Sep 17 00:00:00 2001 From: Jackson Moore Date: Sat, 5 Sep 2026 13:56:55 +0200 Subject: Build invocation intent --- yazi-enter.yazi/main.lua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'yazi-enter.yazi/main.lua') diff --git a/yazi-enter.yazi/main.lua b/yazi-enter.yazi/main.lua index 7fa8d56..2edee41 100644 --- a/yazi-enter.yazi/main.lua +++ b/yazi-enter.yazi/main.lua @@ -67,6 +67,21 @@ local function derive_effective_case(smart, insensitive) return CASE_SENSITIVE end +local function parse_invocation_intent(args) + local mode = parse_mode(args[1]) + local previous, smart, insensitive = normalize_options(args) + validate_argument_keys(args) + + return { + mode = mode, + previous = previous, + smart = smart, + insensitive = insensitive, + direction = derive_direction(previous), + effective_case = derive_effective_case(smart, insensitive), + } +end + local commit = ya.sync(function() return 0 end) -- cgit v1.2.3