logancyang / obsidian-copilot

THE Copilot in Obsidian
https://www.obsidiancopilot.com/
GNU Affero General Public License v3.0
2.9k stars 199 forks source link

[FR]: Remove frontmatter / properties from notes #309

Open Mara-Li opened 8 months ago

Mara-Li commented 8 months ago

Is your feature request related to a problem? Please describe. Asking information about a note will sometimes includes the informations from the frontmatter. For example, when resuming in bullet point, GPT will also give the frontmatter information, like cssclasses or title.

Describe the solution you'd like Before the note is send to the IA, frontmatter must be removed and the note is send after to the IA, without the frontmatter

Describe alternatives you've considered /

Additional context /

logancyang commented 8 months ago

Thanks for the last contribution @Lisandra-dev! Are you interested in working on this one too?

Mara-Li commented 8 months ago

I can do it using the last obsidian API if you want

logancyang commented 8 months ago

Another comment I thought of is that this could be an option users can turn on and off. Sometimes it's useful to have frontmatter sent to the prompt, for example, if the frontmatter has time and date for meetings and projects.

Mara-Li commented 8 months ago

This could be in the settings or custom prompt? Or in context modal? The last option seems to brme better.

logancyang commented 8 months ago

This could be in the settings or custom prompt? Or in context modal? The last option seems to brme better.

I agree, it could be a toggle in the custom prompt modal.

Mara-Li commented 8 months ago

Will do it later today! O/