Sublime Forum

When I open a folder, find in files path should blank or update to current path

#1

Ok, so I develop with many folders at the same time. I have many sandboxes with similar names (project1, project2, etc)

When I use File>Open Folder…,

the search path in the “Where:” field remains the last-opened folder. This is maddening. I wish it were either blank or smart enough to default to the folder the window has been opened to.

Thanks for your help!

0 Likes

#2

Creating a project file for each folder would get you what you are looking for - individual history for all different “remembered” values, plus you could use the quick project switcher, which remembers all of your open files, etc.

I realize this may not be your cup of tea, but I figured I’d mention it.

1 Like

#3

Yeah. You can imagine since I use Sublime, but I have SVN repos that aren’t being built/used in Sublime by other folks, I’ll have to make the project file every time I check out a new sandbox. But this is a good suggestion.

0 Likes

#4

You can save the project file in a different location on your machine. I tend to store all of my project files in a single folder on my machine rather than checking them into version control.

1 Like

#5

I normally store my projects in the folders that they are about, which allows me to specify relative paths in the project’s configuration, but more often than not I do not commit the project (and definitely not workspace) files and instead set my VCS to ignore them.

In some occasions where I have actual project-specific configuration with build systems or settings, I might add the project file to VCS later.

1 Like

#6

Maybe this will help (add to keybindings):

  { 
    "keys": ["ctrl+shift+f"],
    "command": "show_panel",
    "args": {"where": "<project>", "panel": "find_in_files"} 
  },
0 Likes