Vertin_Slixey
2025-06-03
点 赞
0
热 度
18
评 论
0

如何在Typora中添加自定义搜索引擎

具体可见:官方教程

https://support.typoraio.cn/Add-Search-Service/

笔者发了邮件咨询,官方很快回复,给一个赞👍b( ̄▽ ̄)d

以下内容在官方教程的基础上给予翻译与少量修改

用户可以添加自定义搜索引擎,以扩展上下文菜单中显示的功能。

Users can add custom search engines to extend functions shown in context menu.

Slice 2

macOS(苹果桌面操作系统)

There is a system-wide preference to change available search engines in the context menu for most applications:

在大多数应用程序的右键菜单中,都有一个全局首选项来更改可用的搜索引擎:

Snip20160815_11

Windows / Linux

  1. Open MenuPreference in Typora, then click “Open Advanced Settings”. 在 Typora 中打开菜单偏好设置,然后单击 “打开高级设置”。

    sshot-1

  2. Open and edit conf.user.json from the “File Explorer”. If there’s no such file, create one. 从 “文件资源管理器 ”中打开并编辑 conf.user.json。如果没有此类文件,请创建一个。

  3. Modify or set following config into the conf.user.json file, %s will represent the selected text. for example: 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"]
      ]
    

    Note: Default config is: 注:默认配置为

    "searchService": [
        ["Search with Google", "https://google.com/search?q=%s"],
      ]
    
  4. Restart Typora, and then the options from searchService will be available from the context menu. 重新启动 Typora,然后就可以从右键菜单中使用 searchService 的选项了。


用键盘敲击出的不只是字符,更是一段段生活的剪影、一个个心底的梦想。希望我的文字能像一束光,在您阅读的瞬间,照亮某个角落,带来一丝温暖与共鸣。

Vertin_Slixey

intj 建筑师

站长

不具版权性
不具时效性

文章内容不具时效性。若文章内容有错误之处,请您批评指正。


目录

欢迎来到AliceBlog,为您导航全站动态

20 文章数
7 分类数
0 评论数
37标签数
最近评论

访问统计