添加搜索服务

by Typora.net
用户可以添加自定义搜索引擎来扩展上下文菜单中显示的功能。 切片2

苹果系统

对于大多数应用程序,系统范围内的首选项是更改上下文菜单中的可用搜索引擎。您可以在此处找到设置: 片段20160815_11

视窗

(需要Typora≥v0.9.16)
  1. 在Typora中打开Menu→ Preference,然后单击“打开高级设置”。射击1
  2. conf.user.json从打开的“文件浏览”中打开和编辑。如果没有这样的文件,请创建一个。
  3. 将以下配置修改或设置到conf.user.json文件中,%s将代表所选文本。例如:
    "searchService": [
        ["Search with Google", "https://google.com/search?q=%s"],
        ["Translate", "http://translate.google.com/?source=osdd#auto|auto|%s"]
        ["Search with Wikipedia", "https://en.wikipedia.org/wiki/Special:Search/%s"]
      ]
    
    注意:默认配置为:
    "searchService": [
        ["Search with Google", "https://google.com/search?q=%s"],
      ]
    
  4. 重新启动Typora,来自的选项searchService将在上下文菜单中提供。