Obsidian Copilot外掛更新:自訂右鍵選單,AI操作更靈活 (v2.8.7)
Obsidian Copilot插件新增自定義行內命令功能,允許用戶自訂右鍵選單執行AI操作如修正文法、翻譯、總結等。用戶可修改預設提示詞或新增自定義命令,支持繁體中文翻譯等功能。 2025-3-28 16:1:21 Author: jdev.tw(查看原文) 阅读量:8 收藏

由 · 發表於: · 更新於: | 瀏覽數: 14 / 17

標籤:

Obsidian Copilot外掛在V2.8.7(2025年3月6日)新增了自訂行內命令(Inline Command)功能,能讓使用者自訂右鍵選單,以執行不同的AI操作。

gh|394

1. 功能說明

它的操作很簡單:

  1. 先選取一段文字後點擊滑鼠右鍵
  2. 再由選單中選用要執行的Coiplot選項
  3. 預設的選項如下:
    1. Copilot: Fix grammar and spelling (修正文法與拚字)
    2. Copilot: Translate to Chinese (翻譯)
    3. Copilot: Summarize (彙總)
    4. Copilot: Make shorter (變簡短)
    5. Copilot: Make longer (變長)

我們可以依據自己的需要去修改現有這 5 種操作的提示詞,或新增新的提示詞。
最簡單且必要的修改是把現有的提示詞都加上 Translate into Taiwan's Traditional Chinese. 以強制使用繁體中文。

2. 命令設定

以「改寫專業且具吸引力的YouTube標題」為例:

  1. 【⚙️設定】→【Community Plugins】→搜尋 Copilot,切換到Command分頁→點擊最下面的【Add Command】。
  2. Name: 輸入命令名稱
  3. Prompt: 輸入提示詞,<instruction>...</instruction>內是指示的提示詞,<text>...</text>是選取的文字內容
  4. Model: 要使用的模型
  5. Show in context menu: 是否在右鍵選單出現
    gh|700

▼ Prompt欄位範例

<instruction>Transform the text below into a professional and attractive artitle title for YouTube viewers:
    1. Use formal, journalistic style
    2. Attractive and professional title
    Return only the attactive title format for 5 titles.
    3. Pure text format
    4. In Taiwan's Traditional Chinese
</instruction>

<text>{copilot-selection}</text>

▼ 執行結果,顯示5個標題
gh|700

3. 💡 相關鏈接

Obs157|搶先體驗本地AI魔法:免費開源的Copilot for Obsidian 配合Ollama&LM Studio! | 免費、開源的GitHub神器
Obs158|Copilot for Obsidian自訂提示詞與命令

##

您可能也會有興趣的類似文章

您可能也會喜歡…


文章来源: https://jdev.tw/blog/8720/obsidian-copilot-context-menu-commands
如有侵权请联系:admin#unsafe.sh