Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,18 @@
**Storage**
- **Markdown files** — plain `.md` with YAML frontmatter, no database

## UI

<p align="center">
<strong>AI summarization prompt</strong><br><br>
<img width="670" alt="AI summarization prompt" src="https://github.com/user-attachments/assets/21e0d473-9d9e-4ee9-83d9-af0f916eb555" />
</p>

<p align="center">
<strong>Obsidian vault connection</strong><br><br>
<img width="670" alt="Obsidian vault connection" src="https://github.com/user-attachments/assets/ddac3de0-5880-40c6-b5d2-2ce985a83593" />
</p>

## Tech Stack

- Python 3.11+, FastAPI, uvicorn
Expand Down
14 changes: 12 additions & 2 deletions app/static/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,8 @@ async function exportToObsidian(id) {
await navigator.clipboard.writeText(result.markdown);

const subfolder = localStorage.getItem("tm_obsidian_subfolder") || "";
const filename = (result.title || "Untitled").replace(/[\\/:*?"<>|]/g, "-").trim();
const suffix = result.isSummary ? " (Summary)" : " (Transcript)";
const filename = ((result.title || "Untitled") + suffix).replace(/[\\/:*?"<>|]/g, "-").trim();
const filePath = subfolder ? `${subfolder}/${filename}` : filename;

const uri = `obsidian://new?vault=${encodeURIComponent(vault)}&file=${encodeURIComponent(filePath)}&clipboard&overwrite`;
Expand Down Expand Up @@ -1077,7 +1078,7 @@ function addPromptUI(id, card) {
prompt.addEventListener("click", (e) => e.stopPropagation());
prompt.innerHTML = `
<div class="summarize-bar">
<textarea class="summarize-input" rows="2">${localStorage.getItem("tm_summarize_prompt") || "Summarize this transcript concisely, highlighting key points and main topics discussed."}</textarea>
<textarea class="summarize-input" rows="2" placeholder="Summarize this transcript concisely, highlighting key points and main topics discussed.">${localStorage.getItem("tm_summarize_prompt") || ""}</textarea>
<div class="summarize-bar-actions">
<button class="summarize-generate-btn" onclick="generateSummary('${id}')">
<span>Generate</span>
Expand All @@ -1096,6 +1097,15 @@ function addPromptUI(id, card) {
const content = card.querySelector(".card-content");
content.after(prompt);
}

// Auto-grow textarea to fit content
const textarea = prompt.querySelector(".summarize-input");
const autoGrow = () => {
textarea.style.height = "auto";
textarea.style.height = textarea.scrollHeight + "px";
};
textarea.addEventListener("input", autoGrow);
autoGrow();
}

async function generateSummary(id) {
Expand Down
1 change: 1 addition & 0 deletions app/static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1002,6 +1002,7 @@ button:active:not(:disabled) {
border: none;
outline: none;
resize: none;
overflow: hidden;
}

.summarize-input::placeholder {
Expand Down