llityslife Posted March 11, 2020 Posted March 11, 2020 when we search for some key words, there are multi-custom web search. If we can set custom keywords for query, when we type a sentence will match the keywords of the query for the quick search.
vitor Posted March 12, 2020 Posted March 12, 2020 I don’t understand your second sentence. Can you rephrase what you’re asking for?
llityslife Posted March 21, 2020 Author Posted March 21, 2020 (edited) On 3/13/2020 at 3:29 AM, vitor said: I don’t understand your second sentence. Can you rephrase what you’re asking for? For example, I set keywords image, dog for google search, set bag, apple.. for Bing search, then when I input big apple, the Bing will be the first suggestion search service, but input Landscape image, the google search will head for the first one. Edited March 21, 2020 by llityslife
vitor Posted March 21, 2020 Posted March 21, 2020 11 hours ago, llityslife said: For example, I set keywords image, dog for google search, set bag, apple.. for Bing search, then when I input big apple, the Bing will be the first suggestion search service, but input Landscape image, the google search will head for the first one. Are you using automatic translation software?
llityslife Posted March 22, 2020 Author Posted March 22, 2020 16 hours ago, vitor said: Are you using automatic translation software? 😀Maybe I need explain it more detail. The keywords for each web search, when I type a sentence "where can I buy a big", and I set a keyword "big" in amazon search, which will at the first position of the search bar.
deanishe Posted March 22, 2020 Posted March 22, 2020 So you mean "keywords" in the metadata sense, not in the regular Alfred sense:
llityslife Posted March 22, 2020 Author Posted March 22, 2020 54 minutes ago, deanishe said: So you mean "keywords" in the metadata sense, not in the regular Alfred sense: That's right! It needs Alfred auto match the metadata with the datasets, when we are typing a sentence in the search bar, it will match the appropriate search engine. Or there are AI learn engine, it can learn what we want, for example, when I input "Titanic", Alfred will suggest use IMDB and YouTube.
deanishe Posted March 22, 2020 Posted March 22, 2020 That would need to be a very sophisticated feature to work well. It'd need a large amount of domain knowledge, and how would you train it to recognise your custom web searches? I don't think that's at all feasible for Alfred. Web search is just one small feature. The Alfred team can't invest an entire application's worth of effort into it. If you don't like having to specify the search engine before the query, you can try my Suffix Web Search workflow.
llityslife Posted March 22, 2020 Author Posted March 22, 2020 2 hours ago, deanishe said: That would need to be a very sophisticated feature to work well. It'd need a large amount of domain knowledge, and how would you train it to recognise your custom web searches? I don't think that's at all feasible for Alfred. Web search is just one small feature. The Alfred team can't invest an entire application's worth of effort into it. If you don't like having to specify the search engine before the query, you can try my Suffix Web Search workflow. I agree with you. I test Suffix Web Search workflow, it only can be used with one word. Thanks for your help.
deanishe Posted March 22, 2020 Posted March 22, 2020 30 minutes ago, llityslife said: it only can be used with one word. What do you mean? Your query can be as many words as you like. The keywords are read from Alfred's web search configuration, so if you want multiple possible keywords, you need to make a copy of the web search for each keyword.
llityslife Posted March 22, 2020 Author Posted March 22, 2020 2 hours ago, deanishe said: What do you mean? Your query can be as many words as you like. The keywords are read from Alfred's web search configuration, so if you want multiple possible keywords, you need to make a copy of the web search for each keyword. This is work. Is it possible support Chinese. Thanks!
deanishe Posted March 22, 2020 Posted March 22, 2020 28 minutes ago, llityslife said: Is it possible support Chinese. Thanks! Should be fixed now. Download the workflow again.
llityslife Posted March 22, 2020 Author Posted March 22, 2020 33 minutes ago, deanishe said: Should be fixed now. Download the workflow again. Thanks, you help me so much.🎉
llityslife Posted March 22, 2020 Author Posted March 22, 2020 (edited) 41 minutes ago, deanishe said: Should be fixed now. Download the workflow again. v0.3 still not work well for Chinese. I test this phrase: 你好 Edited March 22, 2020 by llityslife
deanishe Posted March 22, 2020 Posted March 22, 2020 It works. If you're having a problem, you need to provide a better description of your issue for me to work with.
llityslife Posted March 23, 2020 Author Posted March 23, 2020 8 hours ago, deanishe said: It works. If you're having a problem, you need to provide a better description of your issue for me to work with. I edit the .py source file, and add reload(sys) sys.setdefaultencoding('utf-8') It is work fine!
deanishe Posted March 23, 2020 Posted March 23, 2020 28 minutes ago, llityslife said: It is work fine! Can you please post the error you’re getting so I can make sure it’s fixed for everyone, not just you?
llityslife Posted March 23, 2020 Author Posted March 23, 2020 10 minutes ago, deanishe said: Can you please post the error you’re getting so I can make sure it’s fixed for everyone, not just you? It is work now, add reload(sys) sys.setdefaultencoding('utf-8') into the py file.
deanishe Posted March 23, 2020 Posted March 23, 2020 I understood what you said. reload(sys) is a hack, and I would like a more correct solution. So I would appreciate it if you would post the error you were getting. That way I can fix it for everyone without hacks.
llityslife Posted March 23, 2020 Author Posted March 23, 2020 (edited) 19 minutes ago, deanishe said: I understood what you said. reload(sys) is a hack, and I would like a more correct solution. So I would appreciate it if you would post the error you were getting. That way I can fix it for everyone without hacks. It's an encode error. So I need to set the websearch.py file character as utf-8. Edited March 23, 2020 by llityslife
deanishe Posted March 23, 2020 Posted March 23, 2020 Just now, llityslife said: It's an encode error. So I need specifies the websearch.py file character set as utf-8. I know it's an encoding error, and I know how to fix it. Please give me the log from Alfred's debugger, so I can see where the error is occurring.
llityslife Posted March 23, 2020 Author Posted March 23, 2020 5 minutes ago, deanishe said: I know it's an encoding error, and I know how to fix it. Please give me the log from Alfred's debugger, so I can see where the error is occurring. Here it is log.txt
deanishe Posted March 23, 2020 Posted March 23, 2020 Thanks. I've fixed the online version of the workflow.
llityslife Posted March 23, 2020 Author Posted March 23, 2020 (edited) 22 minutes ago, deanishe said: I know it's an encoding error, and I know how to fix it. Please give me the log from Alfred's debugger, so I can see where the error is occurring. I found that you build Icon Generator project, if it could be a workflow, it can work with folderify. Edited March 23, 2020 by llityslife deanishe 1
deanishe Posted March 23, 2020 Posted March 23, 2020 2 hours ago, llityslife said: it can work with folderify. That's an interesting tool. Thanks for the pointing it out. I have no plans to turn the Icon Generator into a workflow, though. It doesn't have an API, and all the previews are currently generated from webfonts, which wouldn't work in Alfred. Changing it to provide PNG previews would massively increase the load on the (very small) server.
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