Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Modify live search to begin searching after 1st char - #153

Closed
DiogoAndre wants to merge 2 commits into
atom:masterfrom
DiogoAndre:liveSearch
Closed

DiogoAndre wants to merge 2 commits into
atom:masterfrom
DiogoAndre:liveSearch

Conversation

@DiogoAndre

Copy link
Copy Markdown

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

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.💄
Comment thread lib/find-view.coffee Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't happen here. It should bar part of ::updateDescription()

@benogle

benogle commented Mar 11, 2014

Copy link
Copy Markdown
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.

@probablycorey

Copy link
Copy Markdown

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
@DiogoAndre

Copy link
Copy Markdown
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.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants