I would like to create a keyboard shortcut for the tracker Find function.
However, I’m unable to find the appropriate binary.
Can somebody please advise?
Theres already a key combo of alt+F in any open window that has focus. when you do alt+F it open up the find window. you did know about this?
Tracker’s find panel is part of Tracker/TrackerKit, so there isn’t a binary to call. Luckily, the Shortcut preferences know what BMessage to send to invoke the panel. See the entry “SendMessage application/x-vnd.Be-TRAK ‘Tfnd’”.
I created this shortcut too, because it’s so handy when you don’t have a Tracker window open or don’t want to waste time changing focus.
Regards,
Humdinger
Thank you for the replies.
Yes, but I’m looking for the system-wide Find in the Leaf menu.
{Edit: Hmmm, well I had a closer look at Alt-F and found that it offers a “localized” search on whatever window is in focus which is not what I wanted. However, if you click on the Desktop, if there are other windows open, before hitting Alt-F the “system-wide” search pop-up appears exactly as if you had gone to Leaf > Find. So, my initial dismissal of this was misguided.}
[quote=Humdinger]Tracker’s find panel is part of Tracker/TrackerKit, so there isn’t a binary to call. Luckily, the Shortcut preferences know what BMessage to send to invoke the panel. See the entry “SendMessage application/x-vnd.Be-TRAK ‘Tfnd’”.
I created this shortcut too, because it’s so handy when you don’t have a Tracker window open or don’t want to waste time changing focus.
[/quote]
Wonderful. That’s exactly what I was looking for. I had even seen this but didn’t understand what it did. Never thought to try it out.
Thanks a lot.
I don’t know what you found there…
ALT+F when a Tracker window is in focus (the Desktop is just a fullscreen Tracker window BTW) opens the Find panel. There is no “localised” search, because it’s all done via BQuery, which can only limit a search to volumes, but otherwise runs through all attributes that are to be searched, never minding folders.
If you would be interested in just matches in the current folder, you could just start typing your search string, which jumps to the first matching entry. Or, more brilliant IMO, activate “Type-ahead filtering” in Tracker preferences to only show the files matching your string (ESC clears the search string). Both features will apply their routine to all displayed attributes, i.e. not only the file name.
Can’t tell you how often I miss this when having to endure Windows at work…
Regards,
Humdinger
Thanks for the reply.
When I hit Alt-F when a terminal window, for example, is open and in focus, the pop-up that appears is very different from that which appears when I go to Leaf > Find.
Here’s a photo link to show this
If I type, again for example, the word “Terminal” in the search box, the “Text not found” message appears which clearly indicates to me that only the content in the Terminal window is being searched. Here the screenshot showing this: This is what I refer to as a “localized” search as only one small area is searched.
If, however, I left-click on the Desktop before hitting Alt-F, the exact same Find window that I get from the Deskbar shows up as shown in the screenshot:
When I type Terminal in this searchbox, I get the output as shown in this screenshot:
Thank you for the reply.
If I hit Alt-F when a Terminal window is open and focused, a pop-up appears which is very different from what I get when opening Leaf > Find. A screenshot is shown in this link.
When I add the word “Terminal” to the searchbox, the only output is a pop-up announcing that “Text not found”. See <a hrefhttp://i304.photobucket.com/albums/nn185/paulfxh/screenshot2.png> the screenshot . Obviously, only the terminal content is being searched.
On the other hand, if I take the focus from the Terminal window by clicking on the Desktop, Alt-F now gives the same Find window as Leaf > Find. Here’s the screenshot.
Adding the word “Terminal” to the searchbox, gives a much different output than previously as shown in this screenshot
[quote=Humdinger][quote]
I don’t know what you found there…
ALT+F when a Tracker window is in focus (the Desktop is just a fullscreen Tracker window BTW) opens the Find panel. There is no “localised” search, because it’s all done via BQuery, which can only limit a search to volumes, but otherwise runs through all attributes that are to be searched, never minding folders.
[/quote]
Thank you for the reply.
First, I’ll just mention that this is my third attempt to reply to this thread. However, my first two attempts fell victim to the merciless and unforgiving scrutiny of the Haiku spam filter which apparently didn’t like me posting screenshots (via Photobucket).
The screenshots were meant to illustrate the two types of Find window that Alt-F produces on my computer.
When a window is open and focused (e.g Terminal, StyledEdit), hitting Alt-F provides a pop-up which allows searching ONLY in the focused window.
This is what I refer to as ‘localized’ search as it does not search system wide.
OTOH, if I click on the Desktop first and then hit Alt-F a different Find pop-up appears (the very same one that you get from Leaf > Find) which now allows system-wide searching.
Indeed, it even searches addtionally in any other mounted volumes.
Pity I can’t show the screenshots.