Sublime Forum

FuzzyFileNav ignore by extension?

#1

Hello,

I recently installed the FuzzyFileNav package to use to browse/open files. I am having some difficulty setting ignore patterns in the settings. Specifically, I want to ignore “.*\.(class|pyc)$” patterns. Or, “any sequence of characters followed by a single period, and then ending in either ‘class’ or ‘pyc’”, to my understanding.

However, this pattern does not work for me. I have saved the settings and restarted sublime text, no dice.

My intent is to not see filename.class files in the FuzzyFileNav menu, any tips?

Here’s my full “regex_exclude”: [".\.(DS_Store|svn|git)$", ".\.(class|pyc)"]

In fact, it seems any pattern I enter doesn’t have an effect on anything at all. What am I doing wrong?

thanks

0 Likes

#2

So, this pattern should work fine:

{
    // Patterns of files/folders to exclude
    "regex_exclude": [".*\\.(DS_Store|svn|git|pyc|class)$"],
}

With that said, remember this setting as well:

    // Controls whether system hidden files are shown in FuzzyFileNav.
    "show_system_hidden_files": true,

show_system_hidden_files controls the default behavior for hidden files; whether they are shown or hidden by default. You can always toggle this though with something like ctrl+h (windows Linux) or super+h (on macOS ) when the panel is open.

0 Likes

#3

Thanks a ton, I had the show_system_hidden_files set. I’ve unset it, and it works as desired.

Thanks for the awesome plugin, and the tech support! :stuck_out_tongue:

0 Likes

#4

Just an FYI, I don’t read every thread here, so I may not see all issues related to my plugins on the forum. Issues should usually be filled in the issue tracker for the plugin to make sure I see them.

0 Likes