Gary King Posted April 13, 2016 Share Posted April 13, 2016 How can I get Alfred to find .rb files? Spotlight can find them fine, but Alfred can't, when using file search with the apostrophe. Link to comment
FroZen_X Posted April 13, 2016 Share Posted April 13, 2016 (edited) Where are the .rb files located ? Are the files in the searchscope of Alfred (check here Features->Default Results->Search Scope)? Other than that can you find the files when you use a file filter like here: https://www.alfredapp.com/help/workflows/inputs/file-filter/ And you mean the file search when you press "space" right? Edited April 13, 2016 by FroZen_X Link to comment
Gary King Posted May 3, 2016 Author Share Posted May 3, 2016 The .rb files are located in ~/Projects/. This is not in the search scope. I thought that file search, with the space, is basically the same as performing a search with Spotlight? Because these .rb files appear in the Spotlight search results, but not in the Alfred file search results. Link to comment
FroZen_X Posted May 3, 2016 Share Posted May 3, 2016 Here is a small description: https://www.alfredapp.com/help/troubleshooting/indexing/spotlight/ Alfred uses the same metadata index as spotlight, but only searches in the search scope that is set. Therefore just add the folder into the search scope and you should be fine Link to comment
Gary King Posted May 4, 2016 Author Share Posted May 4, 2016 But that doesn't make sense. It seems like if I use the space search, then it searches the exact same things that Spotlight finds. I know this because when I search for "'.txt", then all .txt files in ~/Projects appears in Alfred just fine. Link to comment
FroZen_X Posted May 4, 2016 Share Posted May 4, 2016 I've just tried to replicate your problem. I can find any rb file I'm searching for. Could you provide a .gif or a step by step of what doesn't work? Here is what i tried: Link to comment
Gary King Posted May 5, 2016 Author Share Posted May 5, 2016 (edited) I created a file called this_is_a_test.rb. I searched for it in Spotlight and Alfred. It appears in Spotlight but not Alfred. I can navigate to it just fine in Alfred through the directory browser though. I have uploaded screenshots here, including my preferences. Edited May 5, 2016 by Gary King Link to comment
FroZen_X Posted May 5, 2016 Share Posted May 5, 2016 (edited) Go to Alfred preferences->Advanced->Rebuild OS X Metadata Just to make sure that nothing fancy is going on. Then try again if you still cant find it. Also try out to using the search option "find" like "find this_is_a_test.rb". If you changed the term then use your chosen keyword Other than that you can check your spotlight options. A few more things that might help you can be found here: https://www.alfredapp.com/help/troubleshooting/indexing/ Let me know if it still doesn't find it Edited May 5, 2016 by FroZen_X Link to comment
Vero Posted May 6, 2016 Share Posted May 6, 2016 I created a file called this_is_a_test.rb. I searched for it in Spotlight and Alfred. It appears in Spotlight but not Alfred. I can navigate to it just fine in Alfred through the directory browser though. I have uploaded screenshots here, including my preferences. Could you also check under Features > File Search > Search that you haven't disabled quick file search? If you search for any other files on your Mac when pressing the spacebar first, do you get results as expected? These .rb files should be found just like any others, provided they're correctly indexed and in the scope; Based on your screenshot, the file is within that scope already. I'm sure it'll turn out to be something simple Cheers, Vero Link to comment
Gary King Posted May 6, 2016 Author Share Posted May 6, 2016 I'll try to rebuild the OS X metadata as a last resort, just because it takes so much time. Or I'll do it when I'm away from my Mac. "find" works fine for "find .txt" for instance, but nothing is returned for "find .rb". My options in Spotlight itself are all good; everything is checkmarked, and there are no excluded folders. I have quick file search enabled already. Finding other files, such as with "'.txt", "'.pdf" works fine. Any other suggestions? Thanks! Link to comment
FroZen_X Posted May 6, 2016 Share Posted May 6, 2016 (edited) Create a folder at the desktop or so and put 2 files in it. One is a .rb file and the other one is idk a .txt. Then search for those files. Check if you find both of them. If you don't find the .rb then add the folder to the search scope. Just to make sure you should definitely find it. Also use "*.rb" to search. If this all doesn't work then set up a workflow with a File Filter like this here: https://www.dropbox.com/s/3h7g505xq58ojmg/File%20filter%20from%20keyword%20and%20open.alfredworkflow?dl=0 Another thing you should do is check what the metadata says with a tool from Andrew, which can be found here: https://twitter.com/preppeller/status/728486378942693376 Edited May 6, 2016 by FroZen_X Link to comment
Gary King Posted June 16, 2018 Author Share Posted June 16, 2018 It turns out that the problem was I needed to uncheck "Source files" on the File Search > Search page. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now