Sublime Forum

Hitting "Esc" When Find

#1

I’m losing my mind.

It seems to be impossible to deterministically know where the window will scroll to after searching.

I’ll hit ctrl-f, type somethign in, and the window will move to the desired location. Great. Now I want to edit. What do I press?

Esc: Sometimes will return the window to the original location, sometimes will cancel the find and remain put.
Enter: Sometimes will go to the next instance, other times will cancel the find.

What do I do?!?

What I want is:
Enter: Move to the next instance, or keep the find open if there aren’t others.
Esc: Clear the find, and KEEP THE WINDOW SCROLL ON THE CURRENT INSTANCE.

Thanks!

0 Likes

#2

Have you tried doing a Ctrl+d? That should select the one instance you’re looking for, and then you press Esc and you close that up. :smile:

Hope this helps.

0 Likes

#3

I’m pretty sure that when using ctrl+f to trigger search, Sublime won’t scroll back after pressing ESC.
Using ctrl+i (inline search) will.

I’ve re-binded ctrl+i to act as ctrl+f to workaround that:

{ “keys”: “ctrl+i”], “command”: “show_panel”, “args”: {“panel”: “find”} }

See Nightly Build 2201 also.

0 Likes