Jump to content

dpsr

Member
  • Posts

    2
  • Joined

  • Last visited

Reputation Activity

  1. Thanks
    dpsr got a reaction from vcao in Alfred not searching within Dropbox folder following update to Dropbox (new Apple silicon version)   
    It appears that Dropbox Beta and OneDrive (which also now uses Apple's File Provider API) the contents of the folder don't load until you navigate to that folder. Due to this, the "files" never make it to the Spotlight index and therefore Alfred doesn't show them. Navigate to the folder and immediately Alfred has the file in its searches. This also makes the File Search Troubleshooter always yield positive results, because to test a file you have to first navigate to Finder, thus adding it to the Spotlight/Alfred index.
     
    A workaround that I've created, which appears to be working for the most part, is to run a small command in Terminal that forces all the folders to enumerate and therefore they get added to the index. Open Terminal and go to the top Dropbox/OneDrive folder, then run this command:
    ls -R */  
    The ls command doesn't change files, but merely lists all folders/files
    The -R switch says to do it recursively through subfolders
    The */ says to list subfolder contents
     
    Depending on the number of subfolders, this command might take a while, but you can leave the Terminal window open with the command running in the background while you do other things.
     
    Update: You also will need to add ~/Library/CloudStorage to Alfred's search scope for Alfred to index the files.
  2. Like
    dpsr got a reaction from deanishe in Alfred not searching within Dropbox folder following update to Dropbox (new Apple silicon version)   
    It appears that Dropbox Beta and OneDrive (which also now uses Apple's File Provider API) the contents of the folder don't load until you navigate to that folder. Due to this, the "files" never make it to the Spotlight index and therefore Alfred doesn't show them. Navigate to the folder and immediately Alfred has the file in its searches. This also makes the File Search Troubleshooter always yield positive results, because to test a file you have to first navigate to Finder, thus adding it to the Spotlight/Alfred index.
     
    A workaround that I've created, which appears to be working for the most part, is to run a small command in Terminal that forces all the folders to enumerate and therefore they get added to the index. Open Terminal and go to the top Dropbox/OneDrive folder, then run this command:
    ls -R */  
    The ls command doesn't change files, but merely lists all folders/files
    The -R switch says to do it recursively through subfolders
    The */ says to list subfolder contents
     
    Depending on the number of subfolders, this command might take a while, but you can leave the Terminal window open with the command running in the background while you do other things.
     
    Update: You also will need to add ~/Library/CloudStorage to Alfred's search scope for Alfred to index the files.
×
×
  • Create New...