NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
How to exclude "vendor" project directory from sea


Joined: 30 May 2006
Posts: 43
Reply with quote
Hi,

composer introduced that external libraries are commonly stored under directory "application/vendor/".

This is good because IDE parses code inside for code completion etc.

But how to exclude this directory from search / replace in PHPEd ?

When I add into Project properties -> Content -> Hide directories ... ".git;vendor" then IDE won't parse scripts under "vendor" for code completion.

On the other hand, external libraries are often huge - takes long to search through and lists useless references.

Would it be possible e.g. to add extra field for excluding searched directories?

Or any advice how to exclude certain directory from search / replace while retaining parsed code for code completion?

Thank you.

View user's profileFind all posts by lubosdzSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 7972
Reply with quote
"Tasks/To-Do list" window already has filter that allows to exclude files and directories from the results. It works for almost the same reason -- exclude TODOs embedded in 3rd party code.
Perhaps we can add an option to call this filer from "Find-In-Files" too.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 30 May 2006
Posts: 43
Reply with quote
You mean probably this tab:





Well, one would never guess, that he has to exclude directory from FIND/SEARCH under the TODO tab Smile

Such a usage is not even documented, right?

If you are looking for a minimum work to reach the effect, it may perhaps work, but users won't like it.

User friendly UI would have such a filter somewhere near FIND filtering tab ..

I believe adding possibility to exclude directories from FIND would be often used by many developers (my experience) & might also speed up code refactoring (? just a guess).

Thank you for feedback.
View user's profileFind all posts by lubosdzSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 7972
Reply with quote
Yes and no. Why would TODO be involved in find in files? Of course, it shouldn't. The idea is to call the same filter we already have implemented. As of the find in files dialog, probably it will get a checkbox to activate filter and a button to invoke it

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 30 May 2006
Posts: 43
Reply with quote
If there would be button to invoke the filter dialog, that would be great.
View user's profileFind all posts by lubosdzSend private message
How to exclude "vendor" project directory from sea
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic