All Posts by Date or last 15, 30, 90 or 180 days.
also by Lloyd: diglloyd.com photography and WindInMyFace.com

Thank you for buying via links and ads on this site,
which earn me advertising fees or commissions.
As an Amazon Associate I earn from qualifying purchases.

Other World Computing...
B&H Photo...
Amazon
As an Amazon Associate I earn from qualifying purchases.
Capacities up to 56TB and speeds up to 1527MB/s
877-865-7002
Today’s Deal Zone Items... Handpicked deals...
$2798 $2198
SAVE $600

$348 $278
SAVE $70

$389 $299
SAVE $90

$322 $222
SAVE $100

$2098 $1298
SAVE $800

$1480 $1080
SAVE $400

$322 $222
SAVE $100

$1480 $1080
SAVE $400

$1299 $949
SAVE $350

$330 $330
SAVE $click

$498 $398
SAVE $100

$180 $140
SAVE $40

$1902 $1400
SAVE $502

$500 $275
SAVE $225

$180 $136
SAVE $44

$2997 $2497
SAVE $500

$3498 $2998
SAVE $500

$370 $280
SAVE $90

$4899 $4499
SAVE $400

$1000 $700
SAVE $300

$1699 $1149
SAVE $550

$280 $230
SAVE $50

$1899 $1499
SAVE $400

$4499 $3499
SAVE $1000

$2198 $1998
SAVE $200

$3998 $3498
SAVE $500

$1799 $1649
SAVE $150

$18599 $16599
SAVE $2000

$1149 $799
SAVE $350

$650 $450
SAVE $200

$199 $119
SAVE $80

$280 $200
SAVE $80

$1399 $1399
SAVE $click

$1199 $779
SAVE $420

$250 $200
SAVE $50

$1699 $1149
SAVE $550

$200 $125
SAVE $75

$70 $40
SAVE $30

$120 $30
SAVE $90

$189 $159
SAVE $30

$3899 $1499
SAVE $2400

$2999 $1999
SAVE $1000

$1699 $849
SAVE $850

$1698 $1198
SAVE $500

$1149 $799
SAVE $350

$1399 $1399
SAVE $click

$1498 $998
SAVE $500

$2797 $2497
SAVE $300

$280 $230
SAVE $50

$799 $449
SAVE $350

$899 $549
SAVE $350

$1699 $1149
SAVE $550

OWC Black Friday Deals

Upgrades, sound, iPad/iPhone, computing, storage, more!

Spotlight: Brain-Dead Search Priorities

Your author writes a fair amount of code in the Java programming language, and frequently uses Spotlight to open the desired “.java” source file.

So it’s maddening that Apple Spotlight chooses to present binary files as top picks over corresponding source files. For example, favoring “.class” files over “.java” (.class is a compiled .java file)—a useless and distracting behavior.

Spotlight also frequently prioritizes a filename found within an email or other file rather than the source file itself. So “HTMLRewriteFilter.java” buried in an email (or this web page!) is often prioritized in the list over the file itself. What sense does that make when there is an *exact* match on the file name?

It’s 2015 and it seems that all intelligent work on Spotlight has ceased, with the new Spotlight search dialog adding unhhelpful visual distractions and yet going backwards on useful behavior.

Moreover, the Spotlight preferences are a dumbed-down child’s version of something that might be useful if done properly. And so MPG is looking into a way to say “do not find or show .class files” and similar things, because the Spotlight search preferences are almost entirely useless (except for disabling entire classes of refuse).

Spotlight prioritizes binary compiled files over the source file

Attempting to help things along, Spotlight fails utterly: as shown, the file “HTMLRewriteFilter.java” exists and its type (kind) is obviously java (specifying “.java” fails the same way).

Specifying kind of “java” finds nothing (this file exists)

Chris R writes:

What also is really annoying with the new Spotlight is the inability to be able to move the actual Spotlight box around the screen once it’s opened!, it’s fixed so if, for example, you were copying a field from a box behind spotlight, you
have to close Spotlight down to view it!

MPG: I’d like it on my 2nd display. Apple golden rule: “Use not more than one display or drive or iDevice, or thou shalt be punished mightily in all behaviors small and useful, for The Apple believes in The One Shall Rule All Testing Protocols”.

John W writes with the suggestion to use:

For the Spotlight search you're attempting, it works much better to use the query:

name:HTMLRewriteFilter.java

This limits the search to filename metadata, versus the full metadata+contents index. That neatly avoids the false hits you describe, since those are all content-based hits (e.g. from emails, blog posts, etc.). Command-line (Terminal.app) users can perform this same search as:

mdfind -name HTMLRewriteFilter.java

Also highly relevant to developer workflow is mdfind's -onlyin flag, which limits the search to the specified directory.

MPG: this is a helpful suggestion. But it begs the question: if a filename matches exactly, why can’t Spotlight just work properly rather than always having to type "name:". For that matter why can’t there be some preferences or a checkbox or similar which remembers its state: why do I have to type "name:" 100 times a day? I created these aliases for use within Terminal

alias mdf="mdfind"
alias mdfh="mdfind name:.html"
alias mdfh.="mdfind name:.html -onlyin ."
alias mdfj="mdfind name:.java"
alias mdfj.="mdfind name:.java -onlyin ."

It’s a pity that such behavior cannot be set as a preferences in the GUI Spotlight search, or as pre-canned searches. Apple thought is only as deep as the skin of an Apple these days.

OWC Accelsior 4M2 PCIe SSD
6000 MB/sec!
Mac or PC.


Ideal for Lightroom, Photoshop, video.
Capacity up to 16TB!
OWC Envoy Express

World’s first Thunderbolt 3 M.2 NVME SSD enclosure.

Super fast, bus-powered, 3.3 oz, DIY easy, rugged and compact!


See also OWC Express 4M2
√ No more slow and noisy hard drives!
OWC Thunderblade Thunderbolt 3 SSD

Blazing fast, up to 16TB.

YEE HAH!



√ No more slow and noisy hard drives!
B&H Photo Black Friday Deals

Photo, video, television, far more!.
OWC Envoy Pro EX SSD
Blazingly fast Thunderbolt 3 SSD!

Up to 4TB capacity, USB-C compatible.

USB-C model also available


Great for travel or for desktop!
View all handpicked deals...

Sony WH-1000XM4 Wireless Noise-Canceling Over-Ear Headphones (Black)
$348 $278
SAVE $70

diglloyd.com | Terms of Use | PRIVACY POLICY
Contact | About Lloyd Chambers | Consulting | Photo Tours
Mailing Lists | RSS Feeds | Twitter
Copyright © 2020 diglloyd Inc, all rights reserved.
Display info: __RETINA_INFO_STATUS__