This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of the Change
This change causes find-and-replace to react instantly to keystrokes in the
findEditor
(the "Find in current buffer" field), rather than after a 300ms debounce delay.This is especially important when the
scrollToResultOnLiveSearch
setting is enabled, as it lets you instantly see when you're at the right place in the file, just like when you search a web page in Chrome.Alternate Designs
One could make this behavior changeable with a setting. But I'm not sure if that's even necessary.
Benefits
Search feels snappier.
Possible Drawbacks
I haven't tested the performance impact of this with large buffers or on slower CPUs. We wouldn't want the editor to become unresponsive as you type into the search field.
Applicable Issues
When I tried running the test suite I had some failing tests on master, so I'm not sure if this broke any tests.