You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Will make Sublime Text to ignore all folders named Settings anywhere on the project, not only the root folder Settings. Therefore, to ignore the folder:
But not the nested folder:
When we creating a .sublime-project as:
{"folders":
[{"path": ".",},]}
Currently we need to manually figure out what is the folder where the .sublime-project is currently on then we need to prepending its name as Data/ on the settings folder_exclude_patterns entries so we can ignore the root folders, without ignoring the nested folders with the same name.
For example, supposing the current folder . name is Data, we need to use:
Where Data is the name of the current folder . where the .sublime-project is on. Appending * on settings also works, but appending /* do not work as * to ignore the folder Settings.
The folder_exclude_patterns should accept the entry . to represent the current folder as in:
I'd just like to point out that it may not be entirely obvious whether ./ would be the folder of the .sublime-project file, or the path; in the example above they coincide, but I tend to put my project settings in a subdirectory to avoid clutter at the project root, and then it makes a difference.
In view of folder_exclude_patterns sitting next to path, it would make sense to have the same interpretation of relative paths. On the other hand, it seems a bit silly and error prone to me that one would have to repeat the value of path as a prefix of any folder_exclude_patterns that shouldn't match directories at any depth.
My preference would be to interpret folder_exclude_patterns relative to path, so that I could exclude the build directory at the project root like this:
To be clear: what I would not like to do is setting the exclude pattern to "../../build". More generally, there should never be a reason to specify folder_exclude_patterns starting with .., since it only makes sense to restrict the directory subtree of the current path.
As of build 4067, // can be used to anchor a pattern to a project folder. Thus Settings would change to //Settings and ./build (which is invalid) could be accomplished via //build.
Currently doing:
Will make Sublime Text to ignore all folders named
Settings
anywhere on the project, not only the root folderSettings
. Therefore, to ignore the folder:But not the nested folder:
When we creating a
.sublime-project
as:Currently we need to manually figure out what is the folder where the
.sublime-project
is currently on then we need to prepending its name asData/
on the settingsfolder_exclude_patterns
entries so we can ignore the root folders, without ignoring the nested folders with the same name.For example, supposing the current folder
.
name isData
, we need to use:Where
Data
is the name of the current folder.
where the.sublime-project
is on. Appending*
on settings also works, but appending/*
do not work as*
to ignore the folderSettings
.The
folder_exclude_patterns
should accept the entry.
to represent the current folder as in:Hence, to ignore some root folder we would use:
To ignore a root folder not depending on the current folder
Data
name.Related:
The text was updated successfully, but these errors were encountered: