Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Power Launcher] Integrate web search experience powered by Bing apis #5527

Closed
wants to merge 3 commits into from

Conversation

peterpy8
Copy link

@peterpy8 peterpy8 commented Aug 3, 2020

Summary of the Pull Request

#5119 #3245

PR Checklist

  • Applies to #xxx
  • CLA signed. If not, go over here and sign the CLA
  • Tests added/passed
  • Requires documentation to be updated
  • I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx

Info on Pull Request

A new plugin Microsoft.Plugin.WebSearch

Validation Steps Performed

type 'web xxx' or 'map 1 microsoft way' or 'dict apple' or 'image titanic'.

@niels9001
Copy link
Contributor

Thanks for the PR @peterpy8 .

For all other plugin images we use 48x48 dimensions, with a padding of 6px for top/bottom.

I have updated your assets to reflect this (and updated the Bing logo since it was using an older version of that) you can easily include:

baidu
google
bing

Since Bing Maps doesn't have an official logo, I'd just re-use the Bing one. Do you agree?

@htcfreek
Copy link
Collaborator

htcfreek commented Aug 3, 2020

Attention: Bing seems to getting a new logo the next time.

@peterpy8
Copy link
Author

peterpy8 commented Aug 3, 2020

Thanks for the PR @peterpy8 .

For all other plugin images we use 48x48 dimensions, with a padding of 6px for top/bottom.

I have updated your assets to reflect this (and updated the Bing logo since it was using an older version of that) you can easily include:

baidu
google
bing

Since Bing Maps doesn't have an official logo, I'd just re-use the Bing one. Do you agree?

Thanks for pointing this out. I will update the logo in my next iteration.

using System.Threading;
using System.Threading.Tasks;
using System.Windows.Controls;
using Wox.Infrastructure;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why using wox classes?

Copy link
Collaborator

@htcfreek htcfreek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have many wox references. Is this correct?

</Page>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\Wox.Infrastructure\Wox.Infrastructure.csproj" />
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

References to wox project. Not shure if this is correct.

using System.Windows.Media;
using JetBrains.Annotations;
using Newtonsoft.Json;
using Wox.Plugin.WebSearch.SuggestionSources;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wox namespace. Not shure if this is correct.

@crutkas
Copy link
Member

crutkas commented Aug 3, 2020

@htcfreek
Copy link
Collaborator

htcfreek commented Aug 7, 2020

@peterpy8
Can please you provide/add an option to disable web search for people who don't want to search the internet.

@crutkas
Copy link
Member

crutkas commented Aug 7, 2020

I think this plugin, we need to start thinking about enabling / disabling plugins holistically.

Also this plug in needs to not break everything if the user does not have internet access.

@htcfreek
Copy link
Collaborator

htcfreek commented Aug 7, 2020

I think this plugin, we need to start thinking about enabling / disabling plugins holistically.

@crutkas
See #5273 for a concept/mock up about plugin management. 😃

@peterpy8
Copy link
Author

peterpy8 commented Aug 9, 2020

I think this plugin, we need to start thinking about enabling / disabling plugins holistically.

@crutkas
See #5273 for a concept/mock up about plugin management. 😃

I agree with crutkas's point that if no internet connectivity, the plugin should be disabled. Could you suggest a proper way to detect internet connectivity?

@muzam1l
Copy link

muzam1l commented Aug 12, 2020

Don't get me wrong, but bing is the primary reason for many to not use windows search who just want to search for files/programs on their computer. So instead of using so many generic words like 'web', 'map' or 'image' for bing search, which can be typed unintentionally by many ( like who just wanted to search for 'maps' app), you could have this plugin prefixed (in addition of option to disable) by some a symbol (like ~ might be good option).

@crutkas
Copy link
Member

crutkas commented Sep 30, 2020

Our goal with PowerToys Run was to build a quick way people can launch apps and files. In doing so, our interface is a plug-in based one to enable all the core scenarios we needed to meet this need. When the plugin system is ready for 3rd party plugins, this will anyone to build against the APIs for their feature. This work includes a robust settings UI that would allow someone to not load a plugin as well as set an action key.

The first main step of that is #5273.

As of now, yes we understand some would want to be able to do a search from their instance of PT Run but others wouldn’t. As this isn’t a core functionality goal of PT Run currently, we’re going to decline this PR as we do need additional work to enable this for everyone to have a great experience.

@crutkas crutkas closed this Sep 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants