Sublime Forum

Questions about indexing

#1

Hi,

I have some questions about indexing. What is the difference between index_exclude_patterns vs binary_file_patterns vs folder_exclude_patterns? Which would be used for ignoring folders from being indexed? What would the right syntax be for preventing a folder and all subfolders from being indexed?

Thanks.

0 Likes

#2

According to the comments in the Default/Preferences.sublime-settings

folder_exclude_patterns (and file_exclude_patterns) control visibility of folders/files in the sidebar, but not indexing.

binary_file_patterns contains a list of file patterns to mark as binary. They are displayed in the side bar but excluded from indexing.

Since ST3158 index_exclude_patterns supports folder names and full paths to folders/files to exclude from indexing. Not sure how much of the fnmatch() syntax like node_modules/** or something like that is supported.

2 Likes

#3

There is a documentation written by FichteFoll on the following thread about pattern matching for folder_exclude_patterns:

  1. https://github.com/SublimeTextIssues/Core/issues/1895#issuecomment-328544813
1 Like

#4

This description should be added to ST’s Documentation.

1 Like