kii Posted September 11, 2023 Share Posted September 11, 2023 (edited) I have a folder named "レッスン01", which means "lesson 01" in Japanese. When I search for files with query "レ", I get the correct result. But "レッ" returns no result. If the query is "レッスン", it works again. All "レ", "レッ", and "レッスン" queries work well in mac's native Spotlight. Terminal command `mdfind` also works well with all of these queries. I observed similar issues with queries including Japanese characters; they work in Spotlight and mdfind but not in Alfred's search. Please fix this issue! I guess you don't even have to handle languages like Japanese directly because adding an option to use `mdfind` result instead of Alfred's algorithm would be perfect! Edit 2023-09-12(JST): I'm using File Search, and "f" is my keyword for "Revealing Files" feature. I'm using no workflows. Edited September 12, 2023 by kii Link to comment Share on other sites More sharing options...
Stephen_C Posted September 11, 2023 Share Posted September 11, 2023 Please see this post from Alfred's developer. Stephen Link to comment Share on other sites More sharing options...
kii Posted September 11, 2023 Author Share Posted September 11, 2023 I'm aware of the post, but I think Script Filter feature is a different thing than file search. Link to comment Share on other sites More sharing options...
vitor Posted September 11, 2023 Share Posted September 11, 2023 If you’re using a Script Filter, you can call mdfind inside of it because you’re writing the code yourself. Do you mean a File Filter? Could you share your workflow so it’s clear what you mean? If you are indeed using a Script Filter, make sure your input is normalised because you may be getting NSTask decomposition. Link to comment Share on other sites More sharing options...
Vero Posted September 11, 2023 Share Posted September 11, 2023 @kii Welcome to the forum! You have much more control over file search when using a File Filter, which you can connect to an Open File object. The fields configuration below will allow you to find the results you need: Remove kMDItemFinderComment Uncheck "Words" Uncheck "Anchor search" at the bottom Let me know how you get on Link to comment Share on other sites More sharing options...
kii Posted September 12, 2023 Author Share Posted September 12, 2023 Thank you for comments! For clarification: - I'm using default "File Search" feature. "f" is my keyword to trigger "Revealing Files" feature. - I'm using no workflows. @Vero Thank you for your suggestion! I tried the File Filter workflow with the setting you suggested, but the search result was the same as I get with the default "File Search" feature. Link to comment Share on other sites More sharing options...
Vero Posted September 12, 2023 Share Posted September 12, 2023 @kii Could you please download this workflow and see what behaviour you get? https://www.dropbox.com/scl/fi/wh6v65roonuzx9a14jdex/File-Filtering-for-Japanese.alfredworkflow?rlkey=19j4zvcleon7gpy3x2ii7b8zb&dl=0 I've created a folder named exactly the same as yours, and don't seem to have any issue finding the folder, so let me know if that workflow works for you too. Link to comment Share on other sites More sharing options...
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