diff options
| author | David Li <taweili@gmail.com> | 2023-11-23 21:11:50 +0800 |
|---|---|---|
| committer | David Li <taweili@gmail.com> | 2023-11-23 21:11:50 +0800 |
| commit | 24d83897baa959c7dca5ed746a9beb9aff044f68 (patch) | |
| tree | 5e7e735899f84c5a7b9288bcc7030eaf4d256df0 /src/components/OllamaCommandPallete.tsx | |
| parent | f3d8e7abd1d23f744a94b672d50b03ec83ae37df (diff) | |
| download | ollama-logseq-24d83897baa959c7dca5ed746a9beb9aff044f68.tar.xz ollama-logseq-24d83897baa959c7dca5ed746a9beb9aff044f68.zip | |
Adding a "Summarize Block" command
Diffstat (limited to 'src/components/OllamaCommandPallete.tsx')
| -rw-r--r-- | src/components/OllamaCommandPallete.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/components/OllamaCommandPallete.tsx b/src/components/OllamaCommandPallete.tsx index 0ee8097..b251318 100644 --- a/src/components/OllamaCommandPallete.tsx +++ b/src/components/OllamaCommandPallete.tsx @@ -6,7 +6,7 @@ import { CommandItem, CommandList, } from "@/components/ui/command" -import { convertToFlashCard, DivideTaskIntoSubTasks, summarize } from "@/ollama"; +import { convertToFlashCard, DivideTaskIntoSubTasks, summarize, summarizeBlock } from "@/ollama"; import { PromptAI } from "./PromptAI"; export function OllamaCommandPallete({ options, theme }: { options: string[], theme: string }) { @@ -24,6 +24,10 @@ export function OllamaCommandPallete({ options, theme }: { options: string[], th logseq.hideMainUI() summarize() break; + case "summarize block": + logseq.hideMainUI() + summarizeBlock() + break; case "convert to flash card": logseq.hideMainUI() convertToFlashCard() |
