vellerefond / project-ring

Project management for the Atom editor.
GNU General Public License v2.0
15 stars 8 forks source link

File Pattern To Hide #43

Closed Anandajoti closed 8 years ago

Anandajoti commented 8 years ago

It is not clear to me how we would exclude multiple files, for instance I would like to exclude:.pdf .doc .jpg .gif .png, .wav. Maybe an example in the documentation would help.

vellerefond commented 8 years ago

@Anandajoti, thank you for your feedback. I agree that the documentation is awful but I haven't had time to fix it. :-) The value in the field you mentioned is compiled to a javascript regular expression so for your use case the regex

\.(?:pdf|doc|jpg|gif|png|wav)$

should be adequate. If you need more assistence please re-open this issue.

Anandajoti commented 8 years ago

Hi vellerefond, thanks for the quick answer. However when I tried this, it doesn't seem to work? See the attached screen shot. 2016-02-23_06-28-38

vellerefond commented 8 years ago

@Anandajoti, I did find a small bug in the logic of pattern hiding so please update to version v0.37.0 and comment here if the provided regex works after the update. I tried to reproduce what you showed me using a small number of files with different extensions and it worked for me.

Also, please, make sure that the Use File Pattern Hiding option (bellow the pattern input field) has been selected.

Anandajoti commented 8 years ago

@vellerefond, yes, that now seems to have fixed it, thank you so much.