Hi guys,
I have wrote add-on for muCommander. This is search task.
Solution based on SearchForm class. See attachment.
I didn't make control on muCommander GUI for search action and remained for your decision.
I hope that add-on you will accept and next build muCommander will include it :)
Source code and flash demo is in attachment.
<muSearch.swf><SearchForm.java>
If you have any wishes and ideas - you are welcome :)
Thanks
> 1. I think about URI is unusable feature. I think what search can get
> advanced features, AND/OR, search in pics, search in docs, search in
> arch, search by size... and URI will be very hard.
I really think we can make it work. After all, Google does represent
search queries as URIs, and it can handle pretty complex search
queries (http://www.google.com/advanced_search). If Google does it,
I'm sure we can do it :)
If you're still not convinced, I'm willing to draft a tentative URI
format as a proof of concept.
> 2. Now search run in some thread and user can stop it, suspend it, go
> to file i.e. User can view search result in runtime now. If we can use
> file panel for search we lost it feature.
Granted, we'll have less control over the search execution in the file
panel. But we can however display results in pseudo 'real time' (i.e.
as they are being found) in the file panel -- what I called
'incremental search results' in my previous email. For this, we would
use the existing folder auto-refresh feature, which automatically
refreshes the current folder when changes have been detected (that is
when the last modified date of the folder has changed).
SearchFile#ls() (SearchFile being an AbstractFile implementation)
would return at most after a certain amount of time (that can be
controlled as a property), for example 2 seconds. That means the first
results would be displayed in the file panel after 2 seconds, then the
panel would be refreshed every 2 seconds as new results are found ...
This wouldn't be as 'real time' as real time can be, but close enough
I believe.
> 3. I undestand your idea and I can propose solution. I can add buttons
> for move search results on file panel from search dialog.
>
> What you think?
I was thinking along these lines too, we can offer the best of both
worlds with the following :
1) the search engine is provided by the search filesystem (search://)
2) results are by default displayed directly in the search dialog
(just like your prototype)
3) by the press of a button, the user can send results to the current
folder ; the implementation of this being just a matter of changing
the current folder to the search:// query
This would offer an uncompromised solution from a user's perspective,
simple yet powerful.
Can we agree on this? I can draft a search URI format and, if you
want, take care of 1) (search filesystem implementation) or at least
provide guidance.
Cheers,
Maxence
Also, if you feel like drafting the URI format and sending it to this
list, this would help spot issues before starting the implementation
and may save some time down the road.
Cheers,
Maxence
On Jul2 ,2008, at 9:46 AM, Andrey Opletin opletin wrote:
> Hi,
>
> I will do it.
>
> Tnx