# 了解 HapiGo 扩展

HapiGo 为大家提供搜索并启动各种本地应用、在线系统及网站的功能。在此基础之上，我们希望扩展 HapiGo 启动之外的操作。比如：在 HapiGo 中搜索启动 Bear 中的笔记、​快速查看日历中的日程、搜索 Notion 中的任务、向 Flomo 快速添加 memo 等等。

**扩展主要分为 3 类：**

1. **基于本地应用的扩展**：与本地应用的数据和命令进行交互。进入方式为先搜索本地应用，然后按「Tab 或空格」进入
2. **单独新增的独立扩展**：与在线系统或网站的数据和命令进行交互。进入方式为输入快搜关键词，然后按「Tab 或空格」进入
3. **基于某项能力衍生的扩展**：比如：基于截图能力衍生的OCR和截图翻译，基于选词能力衍生的选词翻译。衍生扩展进入方式为快捷键，剪贴板的快捷键 <mark style="background-color:blue;">CMD+Shift+C</mark>、截图翻译 <mark style="background-color:blue;">Option+S</mark>、选词翻译 <mark style="background-color:blue;">Option+D</mark>、OCR <mark style="background-color:blue;">Option+A</mark>。

### 应用扩展

* **备忘录**：搜索备忘录内容，支持预览及新建、拷贝、删除等操作
* **Bear**：搜索 Bear 笔记，支持预览及新建、拷贝、删除等操作
* **1Password**：搜索密码书签
* **Craft**：搜索 Craft 笔记，支持预览及新建和拷贝链接操作
* **Dash**：搜索技术手册，支持直接预览
* **FileMaker**：直接打开收藏和最近打开数据库
* **DevonThink**：搜索 DT 中的文档，支持预览
* **Zotero**：搜索 Zotero 中的文档，支持预览
* **快捷指令**：搜索快捷指令，支持直接执行和在快捷指令中编辑
* **柠檬清理**：支持一键清理动作

### 独立扩展

当某个系统在本地没有实体应用时，我们就会单独创建一个扩展。

现阶段，当需要进入独立扩展时，需要通过内置的关键词。部分比较特殊的扩展，会在输入对应数据类型时自动触发（计算、链接、Unix 时间戳等）或数据可以直接搜索（书签搜索）。

近期我们会将扩展进入方式调整为名称搜索+关键词的方式，这样应用和扩展就可以保持一样的搜索启动方式。

* **书签搜索**：关键词：sq 或 bmk，同时也可以在主搜索框直接搜索书签内容。支持的浏览器：Chrome、Safari、Edge、Firefox
* **打开链接**：当输入链接时，会自动触发。「Chrome、Safari、Edge」浏览器打开的标签也会参与自动搜索。
* **查询 IP**：关键词：IP
* **退出应用或进程**：关键词：kill。之后使用 Tab 键可以进入扩展。
* **转换 Unix 时间戳**：关键词：ut。同时，当输入时间戳或 Unix 时间戳时，会自动识别。
* **flomo**：关键词 flomo
* **简悦**：关键词：jy

### 衍生扩展

衍生扩展的进入方式为快捷键，如果不习惯初始快捷键，可进入设置自行修改。

![](/files/A8IbB9m0zsEQqioVwFle)

* **剪贴板**：使用快捷键 <mark style="background-color:blue;">CMD+Shift+C</mark> 进入
* **聚合翻译**：截图翻译 <mark style="background-color:blue;">Option+S</mark>、选词翻译 <mark style="background-color:blue;">Option+D</mark>、OCR <mark style="background-color:blue;">Option+A</mark>
* **OCR**：快捷键 <mark style="background-color:blue;">Option+A</mark>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs-cn.hapigo.com/extention/extentions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
