You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lua/fuzzy/match.lua
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -247,6 +247,18 @@ function Match:_match_worker()
247
247
end
248
248
end
249
249
250
+
--- Returns true if the matcher is considered finalized and no longer processing data in-flight, and there is a valid set of data present for consumption produced by the matcher
251
+
--- @returnboolean True if the matched results data is ready to be consumed by the client
--- Checks if the selection interface is valid, meaning that it has been initialized/opened at least once and has not been destroyed by calling the `close` method which would invalidate its curent state
2431
+
--- @returnboolean True if the select interface is still valid, false otherwise.
--- Checks if the selection interface is showing any entries, the entries can be rendered or set using the `list` method, which renders the specified entries into the list.
2439
+
--- @returnboolean True if the list is empty, false otherwise.
--- Gets the current query from the prompt input. The query is updated on each input change in the prompt. It is not extracted directly from the prompt buffer on-demand but is captured with each input change using TextChangedI and TextChanged autocmd events.
2423
2445
--- @returnstring The current query string, the query will never be nil, otherwise that represents invalid state of the selection interface.
2424
2446
functionSelect:query()
@@ -2447,28 +2469,6 @@ function Select:clear()
2447
2469
self:_clear_view(false)
2448
2470
end
2449
2471
2450
-
--- Checks if the selection interface is showing any entries, the entries can be rendered or set using the `list` method, which renders the specified entries into the list.
2451
-
--- @returnboolean True if the list is empty, false otherwise.
--- Checks if the selection interface is valid, meaning that it has been initialized/opened at least once and has not been destroyed by calling the `close` method which would invalidate its curent state
2465
-
--- @returnboolean True if the select interface is still valid, false otherwise.
-- Render a list of entries in the list window, with optional highlighting positions. If entries is nil, it will re-render the current list fully with existing entries and positions. Sending nil for both parameters signals to the interface that the streaming of entries is complete and it should finalize the rendering. This method is optimized to handle large lists of entries efficiently by rendering only the visible portion of the list and updating it as needed around the cursor position. The list is incrementally updated as new entries are provided, allowing for a smooth and responsive user experience even with large datasets.
2473
2473
-- @param entries? any[]|string[]|nil The list of entries to display.
2474
2474
-- @param positions? integer[][]|nil The list of positions for highlighting
@@ -2927,7 +2927,7 @@ end
2927
2927
--- @classSelectOptions
2928
2928
--- @inlinedoc
2929
2929
--- @fieldprompt_list? boolean|fun()|any[] Whether to show the list window or a function to provide initial entries.
2930
-
--- @fieldprompt_input? boolean|fun() Whether to show the input prompt, when function is provided it is used as the input callback.
2930
+
--- @fieldprompt_input? boolean|fun(string?) Whether to show the input prompt, when function is provided it is used as the input callback and the query is passed to it.
2931
2931
--- The callback may return a list of entries directly, or a table with `entries` and optional `positions` for synchronous updates.
2932
2932
--- @fieldprompt_headers? table|string|nil Headers to display above the prompt input, can be a string or a table of strings or string/highlight pairs, where each inner table represents a block of header entries.
2933
2933
--- @fieldprompt_query? string|nil Initial query to populate the prompt input with. If provided, the prompt input must also be enabled. The query will be set in the prompt input and the input callback will be invoked with this initial query.
Copy file name to clipboardExpand all lines: lua/fuzzy/stream.lua
+25-13Lines changed: 25 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -340,6 +340,18 @@ function Stream:_stop_streaming()
340
340
end
341
341
end
342
342
343
+
--- Returns true if the stream is considered finalized and no longer processing data in-flight, and there is a valid set of data present for consumption produced by the stream
344
+
--- @returnboolean True if the stream results data is ready to be consumed by the client
0 commit comments