diff options
| author | Jackson Moore <jacksonmoore@tuta.io> | 2026-09-05 13:56:34 +0200 |
|---|---|---|
| committer | Jackson Moore <jacksonmoore@tuta.io> | 2026-09-05 13:56:34 +0200 |
| commit | 3a489cb4f4ac348a6b6fc6b25c1be87260a0390c (patch) | |
| tree | f29e34633f76c604414bfe2ca2d7991b65312219 /yazi-enter.yazi | |
| parent | cca8738e6ffe1e7426a9345b263e8769128d00d2 (diff) | |
Derive effective case rule
Diffstat (limited to 'yazi-enter.yazi')
| -rw-r--r-- | yazi-enter.yazi/main.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/yazi-enter.yazi/main.lua b/yazi-enter.yazi/main.lua index 16a5d66..7fa8d56 100644 --- a/yazi-enter.yazi/main.lua +++ b/yazi-enter.yazi/main.lua @@ -2,6 +2,9 @@ local DIRECTION_FORWARD = "forward" local DIRECTION_BACKWARD = "backward" +local CASE_SENSITIVE = "sensitive" +local CASE_INSENSITIVE = "insensitive" +local CASE_SMART = "smart" local ACCEPTED_OPTIONS = { previous = true, @@ -54,6 +57,16 @@ local function derive_direction(previous) return DIRECTION_FORWARD end +local function derive_effective_case(smart, insensitive) + if smart then + return CASE_SMART + end + if insensitive then + return CASE_INSENSITIVE + end + return CASE_SENSITIVE +end + local commit = ya.sync(function() return 0 end) |