mirror of
https://github.com/bitsofchris/openaugi-obsidian-plugin.git
synced 2026-07-22 05:46:42 +00:00
hide dataview query from context we capture
This commit is contained in:
parent
9f521a62dc
commit
ea97ae7882
2 changed files with 15 additions and 3 deletions
|
|
@ -1,9 +1,9 @@
|
|||
{
|
||||
"id": "openaugi",
|
||||
"name": "OpenAugi",
|
||||
"version": "0.3.0",
|
||||
"version": "0.3.1",
|
||||
"minAppVersion": "1.8.9",
|
||||
"description": "Parse your voice notes into atomic notes, tasks, and summaries. OpenAugi is the voice to self-organizing second brain. While taking a voice note say 'auggie' to help the agent. Augmented Intelligence is AI for thinkers.",
|
||||
"description": "Process information faster with augmented intelligence (AI for thinkers). Parse your voice notes into atomic notes, tasks, and summaries. Grab context from dataview queries and linked notes. De-duplicate and merge atomic ideas into a clean, organized vault.",
|
||||
"author": "Chris Lettieri",
|
||||
"authorUrl": "https://bitsofchris.com",
|
||||
"isDesktopOnly": false
|
||||
|
|
|
|||
|
|
@ -173,6 +173,15 @@ ${content}
|
|||
return content.includes("```dataview");
|
||||
}
|
||||
|
||||
/**
|
||||
* Strip dataview query blocks from content
|
||||
* @param content The content to clean
|
||||
* @returns Content with dataview blocks removed
|
||||
*/
|
||||
private stripDataviewQueries(content: string): string {
|
||||
return content.replace(/```dataview[\s\S]*?```\n?/g, '');
|
||||
}
|
||||
|
||||
/**
|
||||
* Extract dataview queries from content
|
||||
* @param content The content to extract queries from
|
||||
|
|
@ -670,7 +679,10 @@ ${content}
|
|||
}
|
||||
|
||||
let content = await this.app.vault.read(file);
|
||||
|
||||
|
||||
// Strip dataview queries from output content
|
||||
content = this.stripDataviewQueries(content);
|
||||
|
||||
// Apply time filtering if specified
|
||||
if (timeWindowDays !== undefined && timeWindowDays > 0) {
|
||||
content = this.extractContentByDateRange(content, timeWindowDays);
|
||||
|
|
|
|||
Loading…
Reference in a new issue