Jump to content

Alfred v2 not finding files that are found in Spotlight


Recommended Posts

Hi...

after switching from Alfred v1 to v2 I have issues with finding files while these files are found using Spotlight. I studied and tested all points at the specific help site for search issues (http://support.alfredapp.com/kb:indexing) and tested also to manually rebuild the index with

sudo rm -R /.Spotlight-V100
sudo mdutil -i on /
sudo mdutil -E /

No success. I cannot find any of my files using the whitespace, the "find" or the "open" command. Setting in the preferences are the default settings with "Include folders in home folder" checked.

 

Any idea what can be wrong?

Best,

Martin

 

Link to comment

Hi...

after switching from Alfred v1 to v2 I have issues with finding files while these files are found using Spotlight. I studied and tested all points at the specific help site for search issues (http://support.alfredapp.com/kb:indexing) and tested also to manually rebuild the index with

sudo rm -R /.Spotlight-V100
sudo mdutil -i on /
sudo mdutil -E /

No success. I cannot find any of my files using the whitespace, the "find" or the "open" command. Setting in the preferences are the default settings with "Include folders in home folder" checked.

 

Any idea what can be wrong?

Best,

Martin

 

Could you check your OS X Spotlight privacy preferences to see if any folders are listed in there. Also, grab this little tool and drag one of the files which isn't being found into it:

 

http://cachefly.alfredapp.com/tools/AlfredMetadataTool_v1.0.zip

 

and let me know the outcome :)

 

Cheers,

Andrew

 

[moving to the help subforum]

Link to comment

Could you check your OS X Spotlight privacy preferences to see if any folders are listed in there. Also, grab this little tool and drag one of the files which isn't being found into it:

 

http://cachefly.alfredapp.com/tools/AlfredMetadataTool_v1.0.zip

 

and let me know the outcome :)

 

Cheers,

Andrew

 

[moving to the help subforum]

 

Thanks for the quick help. There was one single folder in the privacy options of spotlight, which I temporarily removed now. Actually no file at all is found (so I assume the reason it is not the metadata of a specific file), but I picked one of the files and here comes the output of your tool:

/Volumes/Macintosh_HD/Users/pollow/python.m

Internal File Metadata
======================

 Display Name: python.m
    Alt Names: 
    File Type: public.objective-c-source
     Comments: 
     Keywords: 
    Last Used: 

Raw mdls File Metadata
======================

kMDItemContentCreationDate     = 2013-01-05 18:59:30 +0000
kMDItemContentModificationDate = 2013-01-05 19:05:02 +0000
kMDItemContentType             = "public.objective-c-source"
kMDItemContentTypeTree         = (
    "public.objective-c-source",
    "public.source-code",
    "public.plain-text",
    "public.text",
    "public.data",
    "public.item",
    "public.content"
)
kMDItemDateAdded               = 2013-01-05 18:59:30 +0000
kMDItemDisplayName             = "python.m"
kMDItemFSContentChangeDate     = 2013-01-05 19:05:02 +0000
kMDItemFSCreationDate          = 2013-01-05 18:59:30 +0000
kMDItemFSCreatorCode           = "MATL"
kMDItemFSFinderFlags           = 0
kMDItemFSHasCustomIcon         = 0
kMDItemFSInvisible             = 0
kMDItemFSIsExtensionHidden     = 0
kMDItemFSIsStationery          = 0
kMDItemFSLabel                 = 0
kMDItemFSName                  = "python.m"
kMDItemFSNodeCount             = 2824
kMDItemFSOwnerGroupID          = 20
kMDItemFSOwnerUserID           = 501
kMDItemFSSize                  = 2824
kMDItemFSTypeCode              = "MATF"
kMDItemKind                    = "MATLAB Code"
kMDItemLogicalSize             = 2824
kMDItemPhysicalSize            = 4096

Best,

Martin

Link to comment

A possible reason is maybe that I do have a unusual configuration of my home folder, as I do have the system an a SSD and the home folder symlinked on a hard drive (Macintosh_HD). This console snippet make that clear:

macbookpro:Users pollow$ pwd
/Users
macbookpro:Users pollow$ ls -la pollow
lrwxr-xr-x  1 root  admin  34 10 Nov  2012 pollow -> /Volumes/Macintosh_HD/Users/pollow

Best,

Martin

Link to comment

Thanks for the quick help. There was one single folder in the privacy options of spotlight, which I temporarily removed now. Actually no file at all is found (so I assume the reason it is not the metadata of a specific file), but I picked one of the files and here comes the output of your tool:

/Volumes/Macintosh_HD/Users/pollow/python.m

Internal File Metadata
======================

 Display Name: python.m
    Alt Names: 
    File Type: public.objective-c-source
     Comments: 
     Keywords: 
    Last Used: 

Raw mdls File Metadata
======================

kMDItemContentCreationDate     = 2013-01-05 18:59:30 +0000
kMDItemContentModificationDate = 2013-01-05 19:05:02 +0000
kMDItemContentType             = "public.objective-c-source"
kMDItemContentTypeTree         = (
    "public.objective-c-source",
    "public.source-code",
    "public.plain-text",
    "public.text",
    "public.data",
    "public.item",
    "public.content"
)
kMDItemDateAdded               = 2013-01-05 18:59:30 +0000
kMDItemDisplayName             = "python.m"
kMDItemFSContentChangeDate     = 2013-01-05 19:05:02 +0000
kMDItemFSCreationDate          = 2013-01-05 18:59:30 +0000
kMDItemFSCreatorCode           = "MATL"
kMDItemFSFinderFlags           = 0
kMDItemFSHasCustomIcon         = 0
kMDItemFSInvisible             = 0
kMDItemFSIsExtensionHidden     = 0
kMDItemFSIsStationery          = 0
kMDItemFSLabel                 = 0
kMDItemFSName                  = "python.m"
kMDItemFSNodeCount             = 2824
kMDItemFSOwnerGroupID          = 20
kMDItemFSOwnerUserID           = 501
kMDItemFSSize                  = 2824
kMDItemFSTypeCode              = "MATF"
kMDItemKind                    = "MATLAB Code"
kMDItemLogicalSize             = 2824
kMDItemPhysicalSize            = 4096

Best,

Martin

 

Ah, source files are ignored by default as they introduce significant noise into the results. You can show source files in the file search again by un-ticking Source Files in the Don't Show section of Alfred's Features > File Search > Search preferences... but a better way of searching for source files is to setup a workflow (file filter) for this specifically. That way, you can keep the default results super fast and clean, and specifically target source files when you need to.

 

Take a look at the "File filter from keyword and open" template from the [+] button in the workflow prefs. Let me know if you need help with that :)

 

Cheers,

Andrew

Link to comment

A possible reason is maybe that I do have a unusual configuration of my home folder, as I do have the system an a SSD and the home folder symlinked on a hard drive (Macintosh_HD). This console snippet make that clear:

macbookpro:Users pollow$ pwd
/Users
macbookpro:Users pollow$ ls -la pollow
lrwxr-xr-x  1 root  admin  34 10 Nov  2012 pollow -> /Volumes/Macintosh_HD/Users/pollow

Best,

Martin

 

Ah, if you have a symlink like this, try adding the specific folders you want in your home folder to Alfred's search scope (don't just add the home folder as this will include ~/Library which can be a bit messy)

Link to comment

Ah, if you have a symlink like this, try adding the specific folders you want in your home folder to Alfred's search scope (don't just add the home folder as this will include ~/Library which can be a bit messy)

 

Yes, that works, great. Now I just have to remember to add any new folder in Alfreds Preferences.

Thanks,

Martin

Link to comment

Yes, that works, great. Now I just have to remember to add any new folder in Alfreds Preferences.

Thanks,

Martin

 

It's recursive, so if you e.g. add a folder inside ~/Documents/, you won't need to add that. Only top level home folder ones :)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...