diff options
| author | Jackson Moore <jacksonmoore@tuta.io> | 2026-09-05 13:56:55 +0200 |
|---|---|---|
| committer | Jackson Moore <jacksonmoore@tuta.io> | 2026-09-05 13:56:55 +0200 |
| commit | 00f16475db99f40c37dced20aa5ce37e568a4200 (patch) | |
| tree | a3f7f9254d5edd668961d7578258e23246587dea /yazi-enter.yazi | |
| parent | 3a489cb4f4ac348a6b6fc6b25c1be87260a0390c (diff) | |
Build invocation intent
Diffstat (limited to 'yazi-enter.yazi')
| -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) |