View unanswered posts | View active topics



Reply to topic  [ 21 posts ]  Go to page 1, 2  Next
FindFiles Plugin 
Author Message
Member

Joined: Thu Jun 17, 2010 11:44 pm
Posts: 79
Reply with quote
Image
---
Image

GitHub Source

GitHub Releases

[FD5] Download Plugin

[FD4] Download Plugin

Default Shortcut: Alt + Shift + O

Features:
  • Search for files in one or more directories, your project, or a combination of both!
  • Exclude one or more directories from the search.
  • Filter search results by file extension.
  • Prioritize search results by file extension.
  • File Names on one column, and Paths on another, similar to Visual Assist.
  • Automatic File Name column sizing (you have no idea how nice this is).
  • Tons of settings to customize your search results.
  • Super FAST!!! Handles thousands of files easily (files are cached, so the first time it opens you might have to wait a bit).
  • Use Ctrl+Click to go to definition (same as hitting F4).

Notes:
Plugin only compatible with FD4 and later.

The plugin sorts the results by relevance, this relevance is calculated from the String Matching Algorithm. So if you type something in the box that you think should give you a certain file, but it doesn't, try another algorithm.

A word on Performance:
Every time you type a letter into the search box it will run the comparison algorithm on every valid file. Search performance is very heavily dependent on how many files there are in the SearchDirectory and the the algorithm you use. Try a faster algorithm if you run into performance issues while typing the search string.

These are my preferred algorithms, in order of awesomeness:

  • SmithWaterman (default) - Very fast, pretty accurate. [ good for ~= 10000 files]
  • SmithWatermanGotoh - Very accurate, but very slow (especially searching for long strings). [< 500 files]
  • JaroWinkler - Very Fast, moderately accurate. [ tested on over 15000 files]
  • Jaro - Fast, not very accurate.

You can tweak a lot of settings that will affect the search results. Make sure to check out the plugin settings ('Tools -> Program Settings -> FindFiles').

Acknowledgements:
  • Canab - For making the awesome QuickNavigate plugin, with well organized and easy to read code.
  • Sam Chapman - For making SimMetrics API, really awesome stuff.


Last edited by CrazySam on Wed Apr 26, 2017 2:05 am, edited 28 times in total.



Fri Jun 18, 2010 11:29 pm
Profile
Member

Joined: Thu Feb 09, 2006 10:58 am
Posts: 1099
Location: Israel
Reply with quote
Oh... this is not bad at all!

I was wondering, I know that the completion search algorithm is Phillipe's baby, but maybe it could implement one of these algorithms?

_________________
MovieClipCommander


Wed Sep 08, 2010 9:20 pm
Profile
Member

Joined: Thu Jun 17, 2010 11:44 pm
Posts: 79
Reply with quote
It's possible, yeah, but there are a few issues that would probably prove to be more work than it's worth.

First of all the SimMetrics API contains dozens of string matching algorithms (I only included a fraction, those that seemed to work at all), so we'd have to gut the API out for the one that we wanted (and there's quite a few dependencies/inheritance going on there).

Second, like I said, there are dozens of algorithms, and some of them work very well for certain situations, while others are simply abysmal. Finding out the right one for most general situations can be very time consuming. Performance is also a concern, string matching can be an intensive operation, that's why I included a "Search Time:" label that notifies the user if a particular algorithm is taking too long to perform a query.

I would be glad to work on FD if there is any need or use for my skills though, I really love the codebase.


Wed Sep 08, 2010 9:47 pm
Profile
Member

Joined: Thu Feb 09, 2006 10:58 am
Posts: 1099
Location: Israel
Reply with quote
Well, the first one you mentioned seems to be the best, I guess. But I really feel that it has to be Phillipe's decision.

But if you want to make some changes to the plugin, I will be happy if you include "ignore folders" or "search only in class paths" and "in all class paths" settings, or better yet, a checkbox in the dialog itself. :wink:

_________________
MovieClipCommander


Wed Sep 08, 2010 10:32 pm
Profile
Member

Joined: Thu Jun 17, 2010 11:44 pm
Posts: 79
Reply with quote
Excluded folders is in, and I added an option to search for files under the project directory only. That cover most use cases.


Last edited by CrazySam on Mon Oct 22, 2012 4:19 pm, edited 3 times in total.



Wed Sep 08, 2010 10:40 pm
Profile
Member

Joined: Thu Feb 09, 2006 10:58 am
Posts: 1099
Location: Israel
Reply with quote
demand.......... request. :)

_________________
MovieClipCommander


Wed Sep 08, 2010 10:42 pm
Profile
Member

Joined: Thu Jun 17, 2010 11:44 pm
Posts: 79
Reply with quote
IMPORTANT: Further versions of this plugin will be compiled with the source for FD4, so this will NOT work on earlier versions of FD.


Last edited by CrazySam on Mon Oct 22, 2012 4:23 pm, edited 1 time in total.



Sat May 21, 2011 5:07 am
Profile
Member

Joined: Thu Jun 17, 2010 11:44 pm
Posts: 79
Reply with quote
Revised the post and plugin name to make it seem less like I'm competing with Canab's QuickNavigate plugin. This is really mostly useful to search for specific files and specific file types inside a directory.


Wed Jun 01, 2011 6:20 pm
Profile
Member

Joined: Thu Feb 09, 2006 10:58 am
Posts: 1099
Location: Israel
Reply with quote
Hi, can you please avoid the NET 3.5 dependency?

_________________
MovieClipCommander


Wed Jun 01, 2011 9:06 pm
Profile
Member

Joined: Thu Jun 17, 2010 11:44 pm
Posts: 79
Reply with quote
My bad, Linq is awesome for sorting stuff, but the dependency is annoying, so I implemented the sorting manually. Please re-download for .NET 2.0 compatibility.


Last edited by CrazySam on Mon Oct 22, 2012 4:24 pm, edited 1 time in total.



Wed Jun 01, 2011 9:56 pm
Profile
Member

Joined: Thu Jun 17, 2010 11:44 pm
Posts: 79
Reply with quote
Recently updated this plugin, changes:

  • Automatic File Name column sizing (you have no idea how nice this is).
  • Changed default search algorithm to SmithWaterman for great performance improvement (at the cost of some accuracy).
  • Fixed a bug with project files not being added to search results when "Search Project" setting was enabled.
  • Added screenshot of plugin settings. There are lots, experiment!

This is one of the most useful plugins for large scale project development with FD.
Enjoy!


Sun Oct 14, 2012 12:18 am
Profile
Member

Joined: Thu Jun 17, 2010 11:44 pm
Posts: 79
Reply with quote
Hot new changes, I'm on a roll :D

  • MULTITHREADING! Initial caching of files is done on a separate thread, it doesn't matter how many files you try to search, no more freezing.
  • Removed dupes from search results (happened when Project directory was under a specified Search Directory).
  • Added option right on the form to search files in the current Project only.
  • Removed some redundant settings, added one, and cleared up some setting descriptions.
  • Various fixes.


Mon Oct 15, 2012 1:57 am
Profile
Member

Joined: Thu Jun 17, 2010 11:44 pm
Posts: 79
Reply with quote
Frustration minimizer update:

  • User can now type for files to search for while file cache is being computed. Results will automatically be computed when file cache is ready to be processed.
  • Made shortcut customization work within the Shortcut Manager instead of each plugins settings page.
  • Made project file not show up in search results if a project is opened.


Last edited by CrazySam on Thu Nov 01, 2012 10:17 pm, edited 4 times in total.



Wed Oct 31, 2012 9:13 pm
Profile
Member

Joined: Thu Feb 09, 2006 10:58 am
Posts: 1099
Location: Israel
Reply with quote
I love your plugin and updates.
can you integrate the shortcuts with the shortcuts manager?

_________________
MovieClipCommander


Thu Nov 01, 2012 10:27 am
Profile
Member

Joined: Thu Jun 17, 2010 11:44 pm
Posts: 79
Reply with quote
Hi IAP, great suggestion! Please re-download for FD4 Shortcut Manager compatibility.


Thu Nov 01, 2012 10:16 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 21 posts ]  Go to page 1, 2  Next

Who is online

Users browsing this forum: No registered users and 1 guest


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

Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.