小程序自定义搜索框

Disclaimer: Many of my tips have crashed cars, broken lights, and caused lawnmowers to go mad. If anything here seems out of your skill level or at all scary, run screaming away from here, hold your families and friends close; squeeze them tight and never let go. It's not NDA, but it's absolutely FriendDA.

免责声明:我的许多技巧都使汽车撞坏,灯光坏了,并使割草机发疯了。 如果这里的任何事情似乎超出您的技能水平或完全令人恐惧,请远离这里尖叫,让家人和朋友保持亲密; 紧紧挤压它们,永不松手。 不是NDA,而是绝对FriendDA

Chris Sells told me at lunch once that he refused to upgrade to Windows 7 because a single feature was remove. His entire workflow, nay, his whole existence, revolved around the "Search the Internet" menu item in the Start Menu. Without this, he would be rendered helpless. This feature was the Red Sun of Krypton and would sap him of all his superpowers.

克里斯·塞尔斯在午餐时告诉我,他拒绝升级到Windows 7,因为删除了一个功能。 不,他的整个工作流程都围绕着“开始”菜单中的“搜索Internet”菜单项。 没有这个,他将变得无助。 此功能是K红太阳,它将削弱他所有的超能力。

He would hit the Windows-Key to bring up the Start Menu, type a search term, the click "Search the Internet."

他将按Windows键以打开“开始”菜单,键入搜索词,然后单击“搜索Internet”。

Instead, Windows 7 has "See more results" and shows the search results of his hard drive, then he has to click "Internet" from there.

相反,Windows 7具有“查看更多结果”并显示其硬盘驱动器的搜索结果,然后他必须从此处单击“ Internet”。

Now, there's certainly ten-thousand ways from 3rd party launchers and Windows Gadgets to search the web from a textbox. You can right-click on the Windows Task Bar and select Toolbars | Address, then when you type in the address bar, just press the up-arrow, then enter...but that's just one way.

现在,肯定有来自第三方启动器和Windows小工具的一万种方法可以从文本框中搜索网络。 您可以右键单击Windows任务栏,然后选择“工具栏” |“工具栏”。 地址,然后在地址栏中键入内容时,只需按向上箭头,然后输入...,但这只是一种方式。

将“搜索Internet”添加回“开始”菜单 (Adding "Search The Internet" back to the Start Menu)

Personally, I like having more vertical room for local searches in my start menu, but you can put that item back with this Registry Key:

就个人而言,我喜欢在开始菜单中为本地搜索留出更多垂直空间,但是您可以使用以下注册表项将该项目放回原处:

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer]
"AddSearchInternetLinkInStartMenu"=dword:00000001

[HKEY_CURRENT_USER \ Software \ Policies \ Microsoft \ Windows \ Explorer] “ AddSearchInternetLinkInStartMenu” = dword:00000001

That'll make your Start Menu look like this when searching with "Search the Internet" put back. It'll use whatever your default browser is.

当放回“搜索Internet”进行搜索时,这将使您的“开始”菜单看起来像这样。 它将使用您的默认浏览器。

However, that's just a nit. The REALLY interesting stuff is when you add in custom connectors for search.

但是,这仅仅是个小问题。 真正有趣的是,当您添加自定义连接器进行搜索时。

OpenSearch和联合搜索连接器 (OpenSearch and Federated Search Connectors )

You can create you own Search Connectors using OpenSearch, just like Long Zheng's Flickr Connector. This lets you search basically anything, directly from Explorer. Here's a search of Flickr from Explorer.

您可以使用OpenSearch创建自己的搜索连接器,就像Long Zheng的Flickr Connector一样。 这使您基本上可以直接从资源管理器中搜索任何内容。 这是来自Explorer的Flickr搜索。

There's dozens of OpenSearch connectors already out there, many on 7Forums. Then can search for whatever you like, documents, pictures, videos, anything that can be returned in RSS or JSON.

已经有数十个OpenSearch连接器,其中许多在7Forums上。 然后可以搜索您喜欢的任何内容,文档,图片,视频以及可以以RSS或JSON返回的任何内容。

  • MSDN

    MSDN

  • Google (via a Proxy, as Google doesn't return RSS yet)

    Google (通过代理,因为Google尚未返回RSS)

  • YouTube

    的YouTube

  • Channel9

    频道9

  • eBay

    易趣

  • Amazon

    亚马孙

  • Twitter (via this small ZIP of Search Connectors)

    Twitter(通过搜索连接器的这个小ZIP)

制作自己的搜索连接器 (Make Your Own Search Connector)

I don't know anyone on the Bing! team and I'm too impatient to wait so I just wrote my own as an example. (Bing launches next week, I hear, so I'm ready.) You can make one today to search your own intranet.

我不认识Bing! 团队,我太耐烦了,等不及了,所以我只写自己的一个例子。 (我听说Bing将于下周启动,所以我已经准备好了。)您今天就可以搜索自己的Intranet。

<?xml version="1.0" encoding="UTF-8"?><OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:ms-ose="http://schemas.microsoft.com/opensearchext/2009/"><ShortName>Bing!</ShortName><Description>Search Bing via Windows 7 Search.</Description><Url type="application/rss+xml" template="http://www.bing.com/search?q={searchTerms}&amp;format=rss"/><Url type="text/html" template="http://www.bing.com/search?q={searchTerms}"/></OpenSearchDescription> 

Just from this example, you can see how easy it is. I just saved this as a text file called "Bing.osdx" then double-clicked on it. I got this warning:

仅从此示例中,您可以看到它是多么容易。 我只是将其保存为名为“ Bing.osdx”的文本文件,然后双击它。 我收到此警告:

Then, I could search Bing from Explorer (or add it to my Start Menu as seen further down this post):

然后,我可以从资源管理器中搜索Bing (或将其添加到我的“开始”菜单中,如在本文后面进一步看到的那样):

But I want to make this even more prominent in my Start Menu.

但我想在“开始”菜单中使它更加突出。

将自定义搜索连接器固定到“开始”菜单 (Pinning Custom Search Connectors to the Start Menu)

I (or my admin) have to add a few registry keys. Expect that your Network/Company Administrator will send this to you automatically via Group Policy. Note also that these only work on the Pro SKUs (Pro/Ultimate/Enterprise) not the Home stuff.

我(或我的管理员)必须添加一些注册表项。 希望您的网络/公司管理员可以通过“组策略”将其自动发送给您。 还要注意,这些仅适用于Pro SKU(Pro / Ultimate / Enterprise),而不适用于Home。

I've added Library0 and Library1 to point to two .searchconnector-ms files. That's what an .osdx file gets renamed to when it's double-clicked on and installed into c:\users\yourname\searches. Then I added "TryHarderPinnedLibrary" as a DWORD with a value of "1".

我添加了Library0和Library1指向两个.searchconnector-ms文件。 这就是双击.osdx文件并将其安装到c:\ users \ yourname \ searches后的名称。 然后,我将“ TryHarderPinnedLibrary”添加为DWORD,其值为“ 1”。

Now I can "pin" up to 2 (from what I can tell) Search Connectors to my Start Menu, perhaps for an Intranet site, for example.

现在,我最多可以将2个(根据我的判断)“固定”搜索连接器到“开始”菜单,例如对于一个Intranet站点。

Of course, in this example, "Bing!" and "Search the Internet" are the same thing as one is my default. I may just put MSDN down there instead...hm...there we go...

当然,在此示例中,“必应”! 和“搜索Internet”是同一件事,因为这是我的默认设置。 我可能只是把MSDN放在那里...嗯...我们去了...

Enjoy! Again, no warranty, I don't know the Win7 team or the Bing team, I just figured this out on the tubes and by using Process Monitor. This may be all lies. Don't listen to me.

请享用! 再说一次,没有保修,我不认识Win7团队或Bing团队,我只是在试管上并使用Process Monitor弄清了这一点。 这可能全是谎言。 不要听我说

Related Links

相关链接

  • MSDN Documentation on making your own Federated Search Services or an OpenSearch file

    有关制作自己的联合搜索服务或OpenSearch文件的MSDN文档

  • Adding OpenSearch to your Website or Blog

    将OpenSearch添加到您的网站或博客

翻译自: https://www.hanselman.com/blog/adding-custom-search-providers-to-windows-7-plus-advanced-search-tricks

小程序自定义搜索框

小程序自定义搜索框_将自定义搜索提供程序添加到Windows 7以及高级搜索技巧相关推荐

  1. wmi服务或wmi提供程序_什么是WMI提供程序主机(WmiPrvSE.exe),为什么使用那么多的CPU?...

    wmi服务或wmi提供程序 The WMI Provider Host process is an important part of Windows, and often runs in the b ...

  2. fullcalendar自定义搜索框_??这款搜索神器,真希望你早点使用,越早越好!有效提升学习和生活的幸福感!

    这件搜索软件堪称神器,非常好用,但是却不为大众所熟知.一旦用上就停不下来,可以大大提高你的生产力,进而提升生活幸福感.这篇教程将会手把手教你安装.使用.所以完全不用担心掌握不了 先展示一下效果: 强大 ...

  3. dwcs6怎么添加搜索框_一文教会你微信小程序搜索怎么用、怎么优化

    生活中我们常常会用到微信小程序,但很多人不知道该如何搜索.找到小程序:而有些已经做了自己的小程序的商家,也不懂怎么提升自己的微信小程序搜索效果.所以下面就跟大家科普下这两个问题. 1.怎么搜索微信小程 ...

  4. 小程序搜索框_微信小程序搜索及优化相关知识科普

    生活中我们常常会用到微信小程序,但很多人不知道该如何搜索.找到小程序:而有些已经做了自己的小程序的商家,也不懂怎么提升自己的微信小程序搜索效果.所以下面就跟大家科普下这两个问题. 1.怎么搜索微信小程 ...

  5. uni-app的列表搜索框_微信怎么搜索小程序?小程序能有什么用?

    微信小程序发布三年多,如今很多人的日常生活已经离不开它.不过新手常常会遇到这样的情况:使用过某个小程序后,找不到它了:想要再次使用,不知道上哪儿去找.所以下面就跟大家科普下如何找到小程序,以及如何搜索 ...

  6. fullcalendar自定义搜索框_高效搜索任意文件,拯救凌乱的电脑桌面!

    文/安哥拉 Hello大家好,这里是工具狂人. 不知道大家是否有定时整理电脑文件的习惯呢? 还记得每一次用上新的电脑,它们的桌面都是干净整洁的,但过了一阵子之后,它们就不复当初了. 我平时不太喜欢整理 ...

  7. 小程序搜索框_微信怎么搜索小程序?小程序能有什么用?

    微信小程序已经发布了三年多,现在很多人在日常生活中离不开它.但是,新手经常会遇到这种情况:使用小程序后,他们找不到它:如果他们想再次使用它,他们不知道在哪里可以找到它.因此,以下内容将告诉您如何查找小 ...

  8. 小程序搜索框_小程序直播有了搜索入口 这波微信公域流量你要不要抓?

    [亿邦动力讯]日前,微信"搜一搜"上线直达小程序直播功能.这意味着,微信小程序直播有了一个搜索入口. 亿邦动力体验发现,在微信"搜一搜"输入美妆品牌名称&quo ...

  9. 手机bootstrap搜索框_这些桌面小部件,Android 手机可不能错过

    在开源.可玩性较高的安卓系统上,小部件呈现了与 iOS 不一样的魅力.它高度的灵活自由,使得安卓手机用户,更能对自己的手机桌面进行个性化的定制. 可在细数当下众多的安卓小部件里,哪些能在保持实用性的同 ...

最新文章

  1. 深度学习在三维环境重建中的应用
  2. maven实现依赖的“全局排除”
  3. Filter的细节三学习笔记
  4. validateJarFile jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/
  5. Python 技术篇-通过pip命令下载python库到指定位置不用安装方法,查看pip下载库的源码实例演示,pip命令大全
  6. 解决Java版CKFinder无法显示缩略图问题
  7. php 制造异常,php 异常
  8. Hibernate学习笔记之EHCache的配置
  9. ncbi查找目的基因序列_献给初学者:如何使用 NCBI 查找基因序列、mRNA、Promoter...
  10. iec61508最新2020_什么是IEC 61508?
  11. 机器学习项目开发经验
  12. 服务器装系统不识别硬盘分区,u盘装系统时找不到硬盘分区解决方法
  13. 美容美发门店预约下单小程序开发制作
  14. 什么是看板?了解如何构建看板,通过这些示例,让你快速实践
  15. 中国移动云mas短信对接(http)
  16. 盛迈坤电商:店铺自然流量怎么提升
  17. c++植树问题解决代码
  18. “百度杯”CTF比赛 九月场Upload 之菜刀的使用
  19. java高并发实际处理简介
  20. 树莓派3b安装新系统的步骤和一些问题

热门文章

  1. 海量数据处理专题(八)——倒排索引(搜索引擎之基石)
  2. 三级数据库技术|重要知识点(一)
  3. K-means算法及文本聚类实践
  4. 使用代码列出金庸小说中使用过的所有成语
  5. 邻居表项的mcast_solicit数量
  6. 色度学:RGB颜色空间与CMYK颜色空间的比较与图示
  7. 定时器之计时(时间的转换)
  8. Python数据可视化第 9 讲:matplotlib极坐标图绘制函数polar
  9. VMware安装虚拟机出现Operating System not found 解决方案
  10. PANDA 下载及安装