aziz / SublimeFileBrowser

Ditch sidebar and browse your files in a normal tab with keyboard, like a pro!
MIT License
395 stars 45 forks source link

Inherit file/folder_exclude_patterns from global settings #121

Open laggingreflex opened 8 years ago

laggingreflex commented 8 years ago

Exclude file|folder_exclude_patterns

If dired_show_excluded_files is set to false, it hides files and folders that match against folder_exclude_patterns and file_exclude_patterns patterns defined in the global settings.

fixes #82

vovkkk commented 8 years ago

Thanks for effort

Please rename setting to dired_use_global_exclude_patterns

The checks should be probably moved to is_hidden method because prepare_filelist is not used in traverse_tree method of Refresh class; alternatively, we could change traverse_tree, but it would be probably harder to do.

Instead of if use_exclude_patterns == None or use_exclude_patterns == True and ... use if use_exclude_patterns and ...