[haiku-3rdparty-dev] Re: Showing and selecting a file in a Tracker window

  • From: Brian Hill <brianh@xxxxxxxxxxxx>
  • To: haiku-3rdparty-dev@xxxxxxxxxxxxx
  • Date: Sun, 13 Aug 2017 07:01:20 -0400


On Aug 13, 2017, at 2:41 AM, Humdinger (Redacted sender "humdingerb" for 
DMARC) <dmarc-noreply@xxxxxxxxxxxxx> wrote:

On 12 August 2017 at 23:04, Brian Hill <brianh@xxxxxxxxxxxx> wrote:
Haha, I was wonder how to do this exact same thing this morning!  I have the 
“Show in
Tracker” as well in Einsteinium but wanted it to open the folder (that’s all 
it does now) and
select the file.  Let’s see who can be the first to figure out how to get it 
to do something similar
to BList's  ScrollToSelection()!

I implemented this in Einsteinium and when I tried the Show in Tracker for a 
file in /boot/system/bin it selects and scrolls to the file just fine.  This 
folder has 644 items on my install, and I am running x64 on a Core2 quad.  How 
many files does the folder you are opening have?  the bin folder for me has 
always taken about 1/2 second to fully populate and I can’t think another one I 
have come across that takes longer.

The problem really is, that for larger folders (or slow mediums) files
are still being added to the window and your selected file moves out
of the visible area. So, the question is, how to find out the
populating has finished and we can select/scroll to the file once more
with:

Yes that was my idea too, wait a brief period then resend the same message 
again so it will select the file again after populating the window.  Tracker 
should just use the same opened window from the first call, I just tried it and 
it didn’t open two Tracker windows to the same folder.

Of course, if the populating takes a very long time (maybe a network
share) the user may have started to interfere, like scrolling the
window around, moving/renaming the file etc. Sending the 'Tsel' then
would be annoying.

Can you receive a reply from Tracker when the window has completed population?

-Brian


Other related posts: