summaryrefslogtreecommitdiff
path: root/yazi-enter.yazi/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'yazi-enter.yazi/main.lua')
-rw-r--r--yazi-enter.yazi/main.lua13
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)