1

When I hit Ctrl+ F, type a word, hit Enter, then hit Esc, about 50% of the time my cursor is put in the document with the word I searched for selected.

This is the desired behavior. But often, and usually the first time, the search box is cleared instead and I'm returned to the point my cursor was at before I searched.

Can I make it so it always works the first way, like the search function in Firefox?

2
  • strange. Clearing search box and returning to previous position is the behavior when the sought word can't be found, are you sure this happens for you also when word can find it? Oct 8, 2015 at 12:23
  • See this comment superuser.com/questions/983858/… , which I will edit into the question when I understand what's going on.
    – Noumenon
    Oct 8, 2015 at 16:10

1 Answer 1

1

If you press Enter it goes over all instances of searched text. When you found desired instance you may press Esc to take cursor to that instance (or more precisely — to focus on selection of that instance in document).

If you don't press Enter and immediately press Esc it returns cursor to position where it was before the search.

1
  • There are two different behaviors when you press Enter. The one you're describing, it jumps to the first instance and highlights it in blue (selected) -- in this case it focuses there. But sometimes, when you press Enter and there are multiple matches, it shows you the second match and highlights all matches in orange, but without selecting in blue. That's when you hit Escape and are confused. I can reproduce this about 2 searches out of 5, however, if I hit Enter again when I see there is orange but no blue, I do focus and can safely hit Escape. Thanks for helping me figure that out.
    – Noumenon
    Oct 8, 2015 at 16:05

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .