sabof / project-explorer

A project explorer sidebar
267 stars 18 forks source link

[Feature Request]: Hide gitignored files #28

Closed thegeorgeous closed 9 years ago

sabof commented 9 years ago

ATM there is pe/omit-regex, and you can advice/redefine pe/file-interesting-p for more complex scenarios. I have nothing against the feature, but I don't think I'm going to implement it in the foreseeable future.

lsgrep commented 9 years ago

PE becomes extremely slow if there are too many files in the project. I did the dirty trick to omit ignored files.

sabof commented 9 years ago

If somebody where to write a function that would process .gitignore format, I would be quite happy to include it.

mbme commented 9 years ago

Probably it would be easier to run git check-ignore **/* in repository root dir and process it's output. Also seems that this task is related to #31 .

sabof commented 9 years ago

Yes, that should work

sabof commented 9 years ago

I've pushed an implementation on devel. To try it set pe/omit-gitignore to non-nil.

mbme commented 9 years ago

Works for me as expected. Thanks!

mbme commented 9 years ago

one note: when I'm reindexing project there are a lot of noisy messages about ignored files, so maybe it's better to remove message call from pe/file-interesting-p

sabof commented 9 years ago

Fixed

lsgrep commented 9 years ago

Great job.

sabof commented 9 years ago

The changes have been pushed on master.