Sublime Forum

Allow duplicate paths in project with different include/exclude patterns

#1

I would find it useful to be able to add the same path to a project multiple times with different filter settings for each. The reason for this is that I am using a tool that makes it difficult to organize files in any way except simply dumping them in the root folder. As an example, here is a project file that would do exactly what I want except that only the first folder is included.

{
  "folders":
    [
        {
            "path": ".",
            "name": "ProjectName Synthesis Files",
            "folder_exclude_patterns": [
              "*"
            ],
            "file_include_patterns": [
              "*.v"
            ],
            "file_exclude_patterns": [
              "*_tb.v"
            ]
        },
        {
            "path": ".",
            "name": "ProjectName Testbenches",
            "folder_exclude_patterns": [
              "*"
            ],
            "file_include_patterns": [
              "*_tb.v"
            ]
        },
        {
            "path": ".",
            "name": "ProjectName Includes",
            "folder_exclude_patterns": [
              "*"
            ],
            "file_include_patterns": [
              "*.vh"
            ]
        },
        {
            "path": ".",
            "name": "ProjectName Project Files",
            "folder_exclude_patterns": [
              "_ngo",
              "_xmsgs",
              "iseconfig",
              "isim",
              "xst",
              "*log",
            ],
            "file_exclude_patterns": [
              "*_guide*",
              "*_ISE_Backup",
              "*_map.*",
              "*_pad.*",
              "*_xdb",
              "*.bgn",
              "*.bit",
              "*.bld",
              "*.cfi",
              "*.cmd",
              "*.cmd_log",
              "*.drc",
              "*.exe",
              "*.gise",
              "*.html",
              "*.ini",
              "*.ipf",
              "*.ise",
              "*.lso",
              "*.log",
              "*.map",
              "*.mcs",
              "*.mrp",
              "*.ncd",
              "*.ngc",
              "*.ngd",
              "*.ngm",
              "*.ngr",
              "*.pad",
              "*.par",
              "*.pcf",
              "*.prj",
              "*.prm",
              "*.ptwx",
              "*.restore",
              "*.stx",
              "*.syr",
              "*.twr",
              "*.twx",
              "*.unroutes",
              "*.ut",
              "*.wdb",
              "*.wcfg",
              "*.xise",
              "*.xml",
              "*.xmsgs",
              "*.xpi",
              "*.xreport",
              "*.xrpt",
              "*.xst",
              "*.xsl",
              "*.xwbt",
              "output.txt",
              ".v"
            ]
        }
    ]
}
1 Like

#2

I’d really like this feature too
+1

0 Likes