Sublime Forum

Active Ctrl+Shift+R like eclipse

#1

I’d like to use hot key Ctrl+Shift+R like eclipse to searching, it can works, but how to send the selected text to search dialog? like: if ‘xxx’ (the string want to searching) selected, when i Ctrl+Shift+R open searching dialog, the ‘xxx’ will display in it, and show some searching result…

any following will appreciated.

0 Likes

#2

ctrl+f does exactly this. A selected text is added to the find panel at the bottom of the window as text to search for.

ctrl+shift+R is in use for Goto Symbol in Project already.

But you can still remap any function to any key binding. Just open the command pallet and enter “Preferences Key Bindings” and add the following to the User file.

	{ "keys": ["ctrl+shift+r"], "command": "show_panel", "args": {"panel": "find", "reverse": false} },
0 Likes

#3

Thank you for your answer, it’s good idea, but it works well in searching something in current open file.
Any other settings can locate the files in project by providing any part of file name? like: type string like ‘xxx’
It will show some files that file name contains ‘xxx’…

0 Likes

#4

To search for the text in several files hit ctrl+shift+f. You’ll see an additional input field “Where:”. This field can take path patterns to tell ST in which files/folders to search.

0 Likes