From 7ddce814a67d442a40fc0a561a557dafe4b591a0 Mon Sep 17 00:00:00 2001 From: sxyazi Date: Sat, 11 May 2024 17:42:54 +0800 Subject: [PATCH] docs: add `debounce` option to `ya.input()` API --- docs/plugins/utils.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/plugins/utils.md b/docs/plugins/utils.md index 771c7bb6..47c5c1d5 100644 --- a/docs/plugins/utils.md +++ b/docs/plugins/utils.md @@ -109,6 +109,7 @@ Request user input: - `w`: Required, the width of the input, which is an positive integer. - `h`: Optional, the height of the input, which is an positive integer. - `realtime`: Optional, whether to report user input in real time, which is a boolean. + - `debounce`: Optional, the number of seconds to wait for the user to stop typing, which is a positive float. Can only be used when `realtime = true`. (Currently needs the nightly version of Yazi) ```lua local value, event = ya.input {