Jump to content
PeterPanettone

Directory Search in Grep Search: Follow Shortcut links

Recommended Posts

I have added this feature request in GExperts: https://sourceforge.net/p/gexperts/feature-requests/65/

 

This OPTION would add a lot of useful flexibility to directory Search in Grep Search: 

 

If Grep Search finds a shortcut link (*.lnk) of a directory in the search directory (e.g. pointing to D:\MyProject) then Grep Search additionally searches in directory: D:\MyProject

 

If Grep Search finds a shortcut link of a file in the search directory (e.g. pointing to F:\MyRoutines.pas) then Grep Search additionally searches in the file: F:\MyRoutines.pas

 

This would allow me to create a directory full of shortcut links pointing to preferred source code directories and favorite source code files to concentrate the grep search on specific content.

 

This would be very useful!

 

What do you people think?

Share this post


Link to post
2 hours ago, Sherlock said:

I hope nobody builds infinite loops that way...

It would be very easy to detect recursive links and (implicitly) visited files/links/dirs...

 

Another approach would be using hardlinks. Would work with current search.

Edited by PeterPanettone

Share this post


Link to post
1 hour ago, PeterPanettone said:

Another approach would be using hardlinks. Would work with current search.

I'm afraid recursive hardlinks word result in an infinite loop right now.

Share this post


Link to post
8 minutes ago, dummzeuch said:

I'm afraid recursive hardlinks word result in an infinite loop right now.

Who would be so stupid to create recursive hardlinks? (I am not sure whether Windows allows to create recursive hardlinks at all?)

 

And What does this have necessarily to do with Grep Search?

Edited by PeterPanettone

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×