Here's another update: http://puredata.info/Members/jancsika/searchandbrowseplugin/view
These two links should cover all the features of the <ctrl-b> browser other than keyboard browsing.
no delay and on the 256th one call the next iteration with [after idle]. I really don't understand how that remains deterministic but it looks like it does, and it has the effect of speeding up the average search greatly. So much so that you barely even notice the progressbar before it disappears. But if you click on a result that opens a pd file it has to finish the search before it opens, so the progressbar is handy in that situation as an indicator.
for a result. Not sure if I can do much to speed that up-- you'll notice if you do a search that has a lot of results like "a" or "".
text and giving the user a pretty and (hopefully helpful) error message and link in the text widget instead of shooting a tk error dialog at him/her. You'll see it if you search for an open curly bracket, single quote, forward slash, etc.
in the recursive event loop and got a "Too Many Nested Evolutions" error from Tk.
Anyway, after writing various hacks to get tooltips and hyperlinks in Tk, I really hope someone ports Pd to a modern GUI toolkit where you get those things for free!
-Jonathan
----- Original Message -----
From: Jonathan Wilkes jancsika@yahoo.com To: me.grimm megrimm@gmail.com Cc: PD List pd-list@iem.at Sent: Wednesday, October 31, 2012 8:44 PM Subject: Re: [PD] Browse/Search plugin update
G ood to hear. I've got a few more changes I'll post a little later.
-Jonathan
----- Original Message -----
From: me.grimm megrimm@gmail.com To: Jonathan Wilkes jancsika@yahoo.com Cc: Hans-Christoph Steiner hans@at.or.at; PD List
Sent: Wednesday, October 31, 2012 6:25 PM Subject: Re: [PD] Browse/Search plugin update
was caching anything). Haven't tried on OSX yet
Works quite swell here on 10.7 Thanks!!! M
On Oct 31, 2012, at 2:12 AM, Jonathan Wilkes jancsika@yahoo.com
wrote:
Ok, I changed the progress bar and replaced the sluggish [lsort -command]. It now responds pretty much instantaneously when you start a search:
http://puredata.info/Members/jancsika/searchandbrowseplugin/view
Earlier when I tested on winxp it initially took about 15 seconds to load the search, but then it took around 3 seconds after that (even after re-opening Pd, so I don't think it was caching anything).
Haven't
tried on OSX yet.
-Jonathan
----- Original Message -----
From: Hans-Christoph Steiner hans@at.or.at To: Jonathan Wilkes jancsika@yahoo.com Cc: PD List pd-list@iem.at Sent: Tuesday, October 30, 2012 10:38 PM Subject: Re: [PD] Browse/Search plugin update
On 10/30/2012 07:20 PM, Jonathan Wilkes wrote:
I updated my search plugin by adding a progressbar:
http://puredata.info/Members/jancsika/searchandbrowseplugin/view
It also prints out the number of files it searched. There
were
some
reports of a search taking over a minute, but with GNU/Linux
and
winxp I'm getting about 3 seconds for a little over 9,000
docs
(I
think I'm searching two different copies of pd-extended
libs so
that should be well over what you'd typically be
searching).
If
people are getting long searches please start by telling me
how
many files you're searching. Also, the progressbar
updates
don't
start until it's built a list of files and sorted it, so
if
it's
taking a long
time when you search before the progressbar appears then that may be the culprit.
Now that the interface updates live I don't really think
there's
much
need to build an index. You can start reading the first
results
immediately and even scroll the list as it finishes printing
the
results.
(I guess I can also add a "Cancel" button, too.)
Let me know if there are any bugs.
-Jonathan
Looking very good! I consider this something everyone should
install
now. The
progress bar is a good enhancement. I wonder if it could somehow
fit
in to the
GUI elements better somehow. Its fine how it is, but it seems a
little
out of
place.
Looks like there are some debug messages still in it, I get these
when
hovering:
filename is 5.reference/all_about_arrays.pd basedir is
/Applications/Pd-0.43.3-extended-20121008.app/Contents/Resources/doc
filename is 5.reference/loop~-help.pd basedir is
/Applications/Pd-0.43.3-extended-20121008.app/Contents/Resources/doc
filename is 5.reference/all_about_arrays.pd filelist is 7751 filelist is 7751
.hc
_______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management ->
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list