diff options
| author | Omar Magdy <99906646+omagdy7@users.noreply.github.com> | 2023-11-29 20:26:25 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-29 20:26:25 +0200 |
| commit | bce51cc3288da8cdded68c87eb9ee2553df08286 (patch) | |
| tree | 18226e2e5f4ecbd13eb9dc65c509dee9ded94fe7 /src/App.tsx | |
| parent | e579a114f7e17bbebe3aa185b23e7437a79b5813 (diff) | |
| parent | 37c7024b4b4f5afcb00cb0bd6369e2850a4e12c5 (diff) | |
| download | ollama-logseq-bce51cc3288da8cdded68c87eb9ee2553df08286.tar.xz ollama-logseq-bce51cc3288da8cdded68c87eb9ee2553df08286.zip | |
Merge pull request #8 from taweili/master
Add Prompt from Block Context Menu Command
Diffstat (limited to 'src/App.tsx')
| -rw-r--r-- | src/App.tsx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/App.tsx b/src/App.tsx index f9592a3..b902629 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,6 +1,11 @@ import React, { useEffect, useRef, useState } from "react"; import { OllamaCommandPallete } from "./components/OllamaCommandPallete"; -import { convertToFlashCardFromEvent, DivideTaskIntoSubTasksFromEvent, ollamaUI, summarizeBlockFromEvent } from "./ollama"; +import { convertToFlashCardFromEvent, + DivideTaskIntoSubTasksFromEvent, + ollamaUI, + summarizeBlockFromEvent, + promptFromBlockEvent, + expandBlockEvent } from "./ollama"; import { useAppVisible } from "./utils"; const options = [ @@ -43,6 +48,8 @@ function App() { logseq.Editor.registerBlockContextMenuItem("Create a flash card", convertToFlashCardFromEvent) logseq.Editor.registerBlockContextMenuItem("Summarize block", summarizeBlockFromEvent) logseq.Editor.registerBlockContextMenuItem("Divide into subtasks", DivideTaskIntoSubTasksFromEvent) + logseq.Editor.registerBlockContextMenuItem("Ollama: Prompt from Block", promptFromBlockEvent) + logseq.Editor.registerBlockContextMenuItem("Ollama: Expand Block", expandBlockEvent) logseq.App.registerCommandShortcut( { "binding": logseq.settings.shortcut }, ollamaUI |
