Skip to content

Conversation

@Gleek
Copy link
Contributor

@Gleek Gleek commented Dec 18, 2021

Fixes #1218

Adds an extra check to ivy--queue-exhibit to only debounce if the input has
actually changed. It also maintains the previous input variable to match against.

Gleek and others added 2 commits April 15, 2025 13:15
* ivy.el (ivy--queue-last-input): New variable holding last input.
(ivy--queue-exhibit): Debounce by only starting timer if ivy--input
has changed (abo-abo#2941).  Otherwise, even moving to another candidate
with unchanged input incurs a delay.

Fixes abo-abo#1218.

Copyright-paperwork-exempt: yes
* ivy.el (ivy-dynamic-exhibit-delay-ms, ivy--exhibit-timer)
(ivy--queue-last-input, ivy--exhibit): Fix docstring.
(ivy--queue-exhibit): Ditto.  Refactor to only compute ivy--input
once (abo-abo#2941).
@basil-conto basil-conto added the enhancement Suggestion to improve or extend existing behavior label Apr 16, 2025
@basil-conto basil-conto merged commit fd8df3b into abo-abo:master Apr 16, 2025
18 checks passed
@basil-conto
Copy link
Collaborator

Sorry for the delay (heh), and thanks for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Suggestion to improve or extend existing behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

use timer to improve the ivy-read performance

2 participants