Skip to content

Commit

Permalink
docs: add debounce option to ya.input() API
Browse files Browse the repository at this point in the history
  • Loading branch information
sxyazi committed May 11, 2024
1 parent f124d24 commit 7ddce81
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/plugins/utils.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7ddce81

Please sign in to comment.