Srisri Posted February 3, 2017 Share Posted February 3, 2017 (edited) Hi, I am new to Alfred. I have a small question. I want to search inside documents of a certain file type. I have used the "in" prefix which seems to work, but it does not work along with file filter i created. For example, my filter is extension .gaml which is basically a text file with that extension to suit as a input to a particular open source software. While this file filter works, I am unable to use then use the "in" prefix to search inside this gaml files. could someone suggest how i can use both "in" and file filter? Thanks Sri Edited February 3, 2017 by Srisri Link to comment
Andrew Posted February 3, 2017 Share Posted February 3, 2017 @Srisri You'll need to configure the search fields for the filter to look at text content. Select the Advanced tab of the file filter config sheet and from the + button, select kMDItemTextContent. Remove the other items so it looks like the following: Then, just use the file filter's keyword and search terms. Hope this helps! Cheers, Andrew FroZen_X and Srisri 2 Link to comment
Srisri Posted February 3, 2017 Author Share Posted February 3, 2017 Hi Andrew, Thank you for the quick response. This seems so easy. It works Is there a limitation on which kind of files can (or cannot) be searched inside of? Thank you Sri Link to comment
Andrew Posted February 3, 2017 Share Posted February 3, 2017 @Srisri Alfred uses the macOS metadata store for file search, which acts a bit like a full text search lucene index. As long as the file is seen by macOS as having a style of plain text, it should be indexed and therefore searchable by Alfred with kMDItemTextContent Cheers, Andrew Link to comment
FroZen_X Posted February 3, 2017 Share Posted February 3, 2017 10 hours ago, Andrew said: @Srisri You'll need to configure the search fields for the filter to look at text content. Select the Advanced tab of the file filter config sheet and from the + button, select kMDItemTextContent. Remove the other items so it looks like the following: Then, just use the file filter's keyword and search terms. Hope this helps! Cheers, Andrew That is exactly what i needed the other day. Awesome! Now i included it into my Workflows Tyvm 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