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
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Auto search while typing rather than hitting enter to search #11
When using Find to search a single file, you should be able to hit Cmd+G to find the "next" instance without ever having to hit Enter to execute the search. To be clear, Enter should still find the first instance, but Cmd+G should always find the next one.
For comparison, see Sublime Text or Google Chrome.
/cc @mdo I've moved your bug over here as that's where the new search hotness is happening.
So, you type in the box, then instead of enter, you hit cmd-g?
Yup, that's the idea. Searching on the page in say Chrome doesn't require hitting Enter at all—you just hit Cmd-F, type, and the results are highlighted instantly. In Sublime, it's the same thing—results are automatically highlighted in real time. There is never a need to hit Enter—you're already in the search process at that point.
The point of Cmd-G is that I should never have to hit Enter to execute the search—it should already be happening for me.
@benogle sorry for bringing up a closed issue, but is this supposed to advance the viewport to the next match? I tried reading the spec but didn't quite understand.
It does highlight as you type, but doesn't advance the viewport currently. Just trying to do my due diligence before opening an issue.
Activity
benogle commentedon Oct 23, 2013
I'm not entirely sure what to do here. So, you type in the box, then instead of enter, you hit
cmd-g?benogle commentedon Oct 24, 2013
Closing this until I have more direction for it.
mdo commentedon Oct 26, 2013
Yup, that's the idea. Searching on the page in say Chrome doesn't require hitting Enter at all—you just hit Cmd-F, type, and the results are highlighted instantly. In Sublime, it's the same thing—results are automatically highlighted in real time. There is never a need to hit Enter—you're already in the search process at that point.
The point of Cmd-G is that I should never have to hit Enter to execute the search—it should already be happening for me.
benogle commentedon Oct 31, 2013
I get it. Live searching. Runs the search as you type like sublime
drKnoxy commentedon Nov 30, 2015
@benogle sorry for bringing up a closed issue, but is this supposed to advance the viewport to the next match? I tried reading the spec but didn't quite understand.
It does highlight as you type, but doesn't advance the viewport currently. Just trying to do my due diligence before opening an issue.
benogle commentedon Nov 30, 2015
No, it doesnt by default, but there is a setting.
drKnoxy commentedon Nov 30, 2015
Ahhh, thank you. I'm new to atom and still discovering all the bells and
whistles.
On Mon, Nov 30, 2015, 1:54 PM Ben Ogle [email protected] wrote: