Sublime Forum

How to limit file search to specific folder?

#1

Hello. When I click on “ctrl+p” handy menu appears that allows me to search for a file by typing it name. By default scope where this file will be searched is entire project. Is it possible to somehow limit scope of search to specific folder ?

Thanks in advance.

0 Likes

#2

Are you talking about a specific search instance or every time you open ctrl+p?

0 Likes

#3

second case, every time I open ctrl+p

0 Likes

#4

You can preload a text into this panel, though it is a global setting and requires a separate hotkey. Add to your key bindings:

  { "keys": ["<your_hotkey>"], "command": "show_overlay", "args": {"overlay": "goto", "text": "your_folder\\"} }
2 Likes