Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not search on excluded files and directories when using absolute path on the Find All panel #1864

Closed
evandrocoan opened this issue Aug 13, 2017 · 1 comment

Comments

@evandrocoan
Copy link

evandrocoan commented Aug 13, 2017

Summary

While searching on my project files, I noticed Sublime Text not excluding from the search the excluded directories and files. Then I searched and this this question on SuperUser:

  1. How to prevent ST2 from searching in excluded folders?

Expected behavior

Do not search on my excluded project files by folder_exclude_patterns, file_exclude_patterns, folder_include_patterns, file_include_patterns, etc, when I am using absolute path on the Find All search panel:

image

Actual behavior

It only works when I use the project relative path, while searching on my excluded project files by folder_exclude_patterns, file_exclude_patterns, folder_include_patterns, file_include_patterns, etc:

image

Steps to reproduce

  1. Create a Sublime Project:

    {
        "folders":
        [
            {
                "path": "D:/monograph",
                "folder_exclude_patterns":
                [
                    "*cache*",
                ],
            },
        ],
    ]
  2. Open the Find All panel Ctrl+Shfit+F and put a absolute path on the Where field:

    image

    Instead of a relative path to the project:

    image

Environment

  • Operating system and version:
    • Windows 10 build 15063 x64
    • Mac OS ...
    • Linux ...
  • Monitor:
    • Resolution 1920x1080
    • dpi_scale used in ST 1.0
  • Sublime Text:
    • Build 3142
    • 32 bit

Related issues:

  1. Better path support for folder_exclude_patterns #332 Better path support for folder_exclude_patterns
  2. Exclude folder in project root (only) #1115 Exclude folder in project root (only)
  3. Augment "index_exclude_patterns" to understand directories #1805 Augment "index_exclude_patterns" to understand directories
  4. folder_exclude_patterns doesn't work on sub-directories robcowie/SublimeTODO#44 folder_exclude_patterns doesn't work on sub-directories
@wbond
Copy link
Member

wbond commented Feb 14, 2020

As of build 4067, when you right-click on a folder in the sidebar and select Find in Files, it now adds <project filters> to the Where clause, which applies all of the settings. If you wish, you can remove it, or add <project filters> to any other search.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants