Sublime Forum

How to not show unix executable in sublime sidebar?

#1

How to avoid unix executables like c++ executables showing in sidebar on MacOS, with sublime 3?

0 Likes

#2

Use the setting index filter, on you preferences file:

    // folder_exclude_patterns and file_exclude_patterns control which files
    // are listed in folders on the side bar. These can also be set on a per-
    // project basis.
    "folder_exclude_patterns": [".svn", ".git", ".hg", "CVS"],
    "file_exclude_patterns": ["*.pyc", "*.pyo", "*.exe", "*.dll", "*.obj","*.o", "*.a", "*.lib", "*.so", "*.dylib", "*.ncb", "*.sdf", "*.suo", "*.pdb", "*.idb", ".DS_Store", "*.class", "*.psd", "*.db", "*.sublime-workspace"],
    
    // These files will still show up in the side bar, but won't be included in
    // Goto Anything or Find in Files
    "binary_file_patterns": ["*.jpg", "*.jpeg", "*.png", "*.gif", "*.ttf", "*.tga", "*.dds", "*.ico", "*.eot", "*.pdf", "*.swf", "*.jar", "*.zip"],

Related threads:

  1. https://marcjenkins.co.uk/hiding-files-and-directories-in-a-sublime-text-project/
  2. http://stackoverflow.com/questions/17632108/hide-files-with-certain-extension-in-sublime-text-editor
0 Likes

#3

Is there anyway I can exclude the files without extension? Those C++ executables doesn’t have extension here on MacOS.

0 Likes

#4

Try list their names one by one or have some pattern. Example:

"file_exclude_patterns": ["myBinaryFile1","myBinaryFile1","*pattern"]

There is not magic Sublime Text can to do to guess they are binary files.

0 Likes