DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Can a search in progress be aborted ?  (Read 5,841 times)

sosimple

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 25
Can a search in progress be aborted ?
« on: August 10, 2008, 01:24 AM »
Perhaps this is an issue for individual plug-ins.

When I type a command in FARR, using a plug-in,
that generates a large list, FARR goes 'non-responsive'
until the list is completed.

Recently I was using FARR and mru, and I 'accidentally'
typed: mrua instead of mrul

This (mrua) took a few minutes (seemed longer) to
complete but there was no way (that I found) to
interrupt it, or edit the command.

Kevin

phitsc

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 1,198
    • Participated in NANY Challenge Seven Times
    • Plugin Coding Medal
Re: Can a search in progress be aborted ?
« Reply #1 on: August 10, 2008, 07:34 AM »
Perhaps this is an issue for individual plug-ins.

When I type a command in FARR, using a plug-in,
that generates a large list, FARR goes 'non-responsive'
until the list is completed.

Recently I was using FARR and mru, and I 'accidentally'
typed: mrua instead of mrul

This (mrua) took a few minutes (seemed longer) to
complete but there was no way (that I found) to
interrupt it, or edit the command.

Kevin
Hi Kevin

Your are right, this is plugin related. FARR MRU currently collects the results synchronously, although FARR would offer plugins the possibility to do that asynchronously. I didn't do that yet because doing it synchronously is just more straight forward (for implementing, I mean).

I understand your problem though, as I've had it myself. I'm storing all my files on a NAS, which makes everything file related kind of slow. I've tried to cover this problem with FARR MRU's settings, specifically the settings that allow disabling certain file checks for network files. Making the search asynchronous would not speed up anything it would just give the possibility to make the search abortable, which I agree would be very desirable. So I guess I'll think about changing that.

Happy to hear that you're using FARR MRU though :) (or at least try using it).

Philipp

phitsc

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 1,198
    • Participated in NANY Challenge Seven Times
    • Plugin Coding Medal
Re: Can a search in progress be aborted ?
« Reply #2 on: August 10, 2008, 01:52 PM »
An additional comment:

Asynchronous search not only allows aborting, but also changing a search. I.e. if you type characters into FARR's search input field to filter for a search result (a filename for example), a plugin might restart its search based on the new search criteria. FARR MRU currently handles this by caching the results once you type mrua for example. Then, when you add search criteria, the search results are displayed using that cache.

Original address: https://www.donationcoder.com/forum/index.php?topic=14369.0