From 24d83897baa959c7dca5ed746a9beb9aff044f68 Mon Sep 17 00:00:00 2001 From: David Li Date: Thu, 23 Nov 2023 21:11:50 +0800 Subject: Adding a "Summarize Block" command --- src/components/OllamaCommandPallete.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/components') 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() -- cgit v1.2.3