This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Repository navigation
Modify live search to begin searching after 1st char - #153
Closed
DiogoAndre wants to merge 2 commits into
Closed
DiogoAndre wants to merge 2 commits into
DiogoAndre wants to merge 2 commits into
Conversation
Searching after the 1st char improves the performance on large files 🏇 There is also a change to display the text 'Find in current buffer' when the find field is cleared.💄
Contributor
There was a problem hiding this comment.
This shouldn't happen here. It should bar part of ::updateDescription()
Contributor
|
I like this idea. I am in for merging this (pending description update change) provided @probablycorey and @kevinsawicki dont have objections. We originally had it this way, and the argument for moving back to searching on one char was consistency. |
|
I'm cool with bringing this back now. I'd feel better if we made searching fast enough to handle one letter searches, but this is a good temporary fix. |
Also modify the updateResultCounter so it returns to its initial state when there is only one character in the findEditor
Author
|
Cool.. I've moved the description into the correct function, and made another change to also update the result counter in case there's only one character in the search field. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Starting the search after the first character improves the performance/experience when editing large files. Maybe we can bring it back?
I've also added a small cosmetic change. When the find textfield is cleared the description will now be returned to
'Find in current buffer'instead of showing'No results for ''This is related to issue #145. Live search was introduced via #113