leny / atom-tree-ignore

Use a .atomignore file to hide files & folder in tree view
MIT License
41 stars 13 forks source link

Should use paths relative to the project #12

Closed PhiLhoSoft closed 8 years ago

PhiLhoSoft commented 8 years ago

This package uses the paths reported by Atom. But these are absolute to the root of the system, not relative to the project.

For example, my project is at /user/PLS/projects/awesome. If I open awesome in Atom and if I put PLS in the .atomignore file, the whole project disappears!

Maybe this package should get the project path and remove this prefix from the paths before giving them to the ignore library.

leny commented 8 years ago

Thanks for the report. I'll try to fix this tonight, more probably tomorrow.

leny commented 8 years ago

Hi, I've pushed a fix as version 0.4.3, works well on OS X.

Can you test it on Windows?