diff options
| -rw-r--r-- | yazi-enter.yazi/main.lua | 15 |
1 files changed, 15 insertions, 0 deletions
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) |