Jump to content

Recommended Posts

Posted

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.

  • 2 weeks later...
Posted (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 by llityslife
Posted
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?

Posted
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.

Posted
54 minutes ago, deanishe said:

So you mean "keywords" in the metadata sense, not in the regular Alfred sense:

 

alfred-keyword.png.7da3c5bdd970d827b8c313c52b6a0cb3.png

 

 

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.

Posted

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.

Posted
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.

Posted
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.

  • vitor changed the title to Automatic suggestion of search engine in web search
Posted
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.

image.png.4f231fc572fd3fabeed5ea10d19fd457.png

Is it possible support Chinese. Thanks!

image.png.497619ba02b2f5ace505f35f4666967b.png

Posted (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 by llityslife
Posted
8 hours ago, deanishe said:

It works.

suffix-search.png.e108c09209224962e3bd7dcafe14f9c2.png

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!

Posted
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?

Posted
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.

Posted

 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.

Posted (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.

image.png.404e6c72e827d2c7f632b31a7d45d6dd.png

image.png.1860c6e0f0b22a58a1bfcf85516b1ad1.png

Edited by llityslife
Posted
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.

Posted
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

Posted (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.

image.png.05c7f1b37849544bfa9a8b9e0bf2d433.png

Edited by llityslife
Posted
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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...