Reputation: 452
I am using Sublime Text 3 on Windows.
I can select the next instance of the currently selected text, using Ctrl+D.
Is there keybinding for selecting and moving the cursor to the previous instance of the selected text?
For example, a keybinding that will go from this state:
To this state:
.
In this specific case, I can do that using Ctrl+K, Ctrl+D (skipping the current selection), but in larger files it's more complicated.
I looked a in the key bindings file but the keys I tried did not work:
{ "keys": ["shift+f3"], "command": "find_prev" },
{ "keys": ["ctrl+f3"], "command": "find_under" },
{ "keys": ["ctrl+shift+f3"], "command": "find_under_prev" },
Also, I looked at "How to navigate between instances of selected text in Sublime Text 3?", but that is talking about selecting the previous instance, it selects the previous instance instead of the current, selected, instance.
Upvotes: 2
Views: 484
Reputation: 160551
Sublime supports "Find Previous" using Shift+Command+G to find the currently selected text on Mac OS. It's under the "Find" menu.
I'm sure there's a Windows equivalent because in the default "Key Bindings" in the preferences it's
"super+shift+g"
in Sublime-ese.
Upvotes: 1