Jump to content

Ignore in Alfred — Exclude files and folders from Alfred’s search results


Recommended Posts

When reporting issues, please include your exact installed versions of:

  • The Workflow.
  • Alfred.
  • macOS.
In addition to:
  • The debugger output. Perform the failing action, click “Copy” on the top right and paste it here.
  • Details on what you did, what happened, and what you expected to happen. A short video of the steps with the debugger open may help to find the problem faster.
Thank you. Accurate and thorough information is crucial for a proper diagnosis which allows me to help you better.
Link to comment
  • 1 month later...
  • 4 weeks later...
  • 4 weeks later...
7 minutes ago, vitor said:

They should (and do for me, plus I haven’t gotten other reports like yours). Can’t say why without you rebooting and providing the information requested above.

 

I drag the "teste" folder in the troubleshooting file index:

 

Starting Diagnostics...

File: 'teste'
Path: '/Users/gustavopellegrini'

-----------------------------------------------------------

Check file cache database...

File cache integrity is ok

-----------------------------------------------------------

Check if file is readable...

Alfred has permissions to read this file.

Unix Permissions: 493
Underlying Type: NSFileTypeDirectory
Extended Attributes: (
    "com.apple.metadata:_kMDItemUserTags"
)

-----------------------------------------------------------

Check if volume '/' is indexed by macOS...

Indexing is enabled on this drive

-----------------------------------------------------------

Check direct file metadata...

Direct metadata available

Display Name: teste
 Other Names: 
Content Type: public.folder
   Last Used: 2022-11-06 17:35:32 +0000

-----------------------------------------------------------

Check mdls file metadata...

Metadata contains required items

_kMDItemDisplayNameWithExtensions      = "teste"
kMDItemContentCreationDate             = 2022-08-18 07:44:10 +0000
kMDItemContentCreationDate_Ranking     = 2022-08-18 00:00:00 +0000
kMDItemContentModificationDate         = 2022-11-06 17:35:18 +0000
kMDItemContentModificationDate_Ranking = 2022-11-06 00:00:00 +0000
kMDItemContentType                     = "public.folder"
kMDItemContentTypeTree                 = (
    "public.folder",
    "public.directory",
    "public.item"
)
kMDItemDateAdded                       = 2022-08-18 07:44:10 +0000
kMDItemDateAdded_Ranking               = 2022-08-18 00:00:00 +0000
kMDItemDisplayName                     = "teste"
kMDItemDocumentIdentifier              = 0
kMDItemFSContentChangeDate             = 2022-11-06 17:35:18 +0000
kMDItemFSCreationDate                  = 2022-08-18 07:44:10 +0000
kMDItemFSCreatorCode                   = ""
kMDItemFSFinderFlags                   = 0
kMDItemFSHasCustomIcon                 = (null)
kMDItemFSInvisible                     = 0
kMDItemFSIsExtensionHidden             = 0
kMDItemFSIsStationery                  = (null)
kMDItemFSLabel                         = 0
kMDItemFSName                          = "teste"
kMDItemFSNodeCount                     = 2
kMDItemFSOwnerGroupID                  = 20
kMDItemFSOwnerUserID                   = 501
kMDItemFSSize                          = (null)
kMDItemFSTypeCode                      = ""
kMDItemInterestingDate_Ranking         = 2022-11-06 00:00:00 +0000
kMDItemKind                            = "Pasta"
kMDItemLastUsedDate                    = 2022-11-06 17:35:32 +0000
kMDItemLastUsedDate_Ranking            = 2022-11-06 00:00:00 +0000
kMDItemUseCount                        = 12
kMDItemUsedDates                       = (
    "2022-08-18 03:00:00 +0000",
    "2022-10-13 23:00:00 +0000",
    "2022-11-04 00:00:00 +0000",
    "2022-11-05 00:00:00 +0000",
    "2022-11-06 00:00:00 +0000"
)
kMDItemUserTags                        = (
    "alfred:ignore"
)

-----------------------------------------------------------

Check file is in search scope...

⚠️ File isn't within Alfred's default search scope

Add relevant folder to Alfred's Default Search Scope, or if you're using a workflow, add to the File Filter's scope

-----------------------------------------------------------

Check MDQuery file search...

macOS did not return a match for this file in your search scope. Try resetting Alfred's Preferences > Features > Default Results > Search Scope > Reset... to "Reset to Applications and Home"

File Search Results for search scope (
)

File Search Results for ~/ (
    "[0] /System/Volumes/Data/Users/gustavopellegrini/teste"
)

File Search Results for / (
    "[0] /System/Volumes/Data/Users/gustavopellegrini/teste"
)

-----------------------------------------------------------

Troubleshooting failed
 

Link to comment

You’re still seeing the folder because it’s directly under your home and search optimises that. In real usage that won’t happen, because most folders won’t be at the root of your home. In the off chance that is something you truly need instead of being just a test, you can go to Alfred Preferences → Features → Default Results and Reset the Search Scope to Applications and Home.

Link to comment
  • 3 months later...

I have this error:

ERROR:

ERROR: Ignore in Alfred[Automation Task] Task Error: Swift/ErrorType.swift:200: Fatal error: Error raised at top level: Error Domain=NSOSStatusErrorDomain Code=-5000 "afpAccessDenied: Insufficient access privileges for operation " UserInfo={NSURLKeysOfUnsetValuesKey=(
    NSURLTagNamesKey
)}


Any ideas how to fix it?

Link to comment
  • 2 months later...
  • 3 months later...
On 6/7/2023 at 2:16 AM, Vero said:

@andy4222 Type "reload" to refresh the app cache. This should take care of it :)


This fixed it for me, instantly.

I'm a bit surprised because I've had this problem for quite a while, i.e. certain files with the Alfred:ignore tab still showed up in Alfred search results.

But what could be better than a solution that is faster and easier than saying thank you!?

Thank you!

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...