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.lua19
1 files changed, 19 insertions, 0 deletions
diff --git a/yazi-enter.yazi/main.lua b/yazi-enter.yazi/main.lua
index 32e16c7..b7d66b3 100644
--- a/yazi-enter.yazi/main.lua
+++ b/yazi-enter.yazi/main.lua
@@ -177,6 +177,25 @@ local function apply_find(query, search_policy)
return UPDATE_FAILURE, reply_or_error
end
+local function new_prompt_specification(direction)
+ return {
+ name = COMMON_PROMPT_DATA.name,
+ history = COMMON_PROMPT_DATA.history,
+ value = COMMON_PROMPT_DATA.value,
+ obscure = COMMON_PROMPT_DATA.obscure,
+ realtime = COMMON_PROMPT_DATA.realtime,
+ debounce = COMMON_PROMPT_DATA.debounce,
+ pos = {
+ COMMON_PROMPT_DATA.pos[1],
+ x = COMMON_PROMPT_DATA.pos.x,
+ y = COMMON_PROMPT_DATA.pos.y,
+ w = COMMON_PROMPT_DATA.pos.w,
+ h = COMMON_PROMPT_DATA.pos.h,
+ },
+ title = "Find next:",
+ }
+end
+
local function require_plain_data(label, value, active_tables)
local value_type = type(value)
if value_type == "string" or value_type == "boolean" or value_type == "number" then