用户可以添加自定义搜索引擎来扩展上下文菜单中显示的功能。
苹果系统
对于大多数应用程序,系统范围内的首选项是更改上下文菜单中的可用搜索引擎。您可以在此处找到设置:
视窗
(需要Typora≥v0.9.16)
- 在Typora中打开
Menu
→ Preference
,然后单击“打开高级设置”。
conf.user.json
从打开的“文件浏览”中打开和编辑。如果没有这样的文件,请创建一个。
- 将以下配置修改或设置到
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"],
]
- 重新启动Typora,来自的选项
searchService
将在上下文菜单中提供。