~protesilaos/denote

3 2

File extension and front-matter format

André Fincato <andre@andrefincato.info>
Details
Message ID
<C8F98B4F-C1D1-483B-B773-123043DF2C4A@andrefincato.info>
DKIM signature
missing
Download raw message
Hi hi,

I hope this question hasn't been asked already, as I searched the archives with no avail.

I would like to start using Denote, and adapt it to my existing workflow — which is:

keeping notes as `.txt` files, mostly as a mix of YAML (front-matter, some other "blocks" inside the body) and the body as markdown-ish (though I use it very sparsely).

Looking at the Denote docs, it seems I could manage to write a custom function to do this, except already Denote uses a TOML syntax for markdown-like files.

My question therefore: would making my own custom functions on top of Denote be going against Denote's "nature"? Eg, would using a YAML syntax for the front-matter be a possible source of problems in the long term?


Many thanks!
André
Details
Message ID
<FAFEA819-F147-4790-80BD-5914177669C8@nobiot.com>
In-Reply-To
<C8F98B4F-C1D1-483B-B773-123043DF2C4A@andrefincato.info> (view parent)
DKIM signature
missing
Download raw message
Hi André,

I use YAML for my markdown files with Denote. See `maekdown-yaml` file type. You should be able to adjust denote’s file type so that  you can use YAML front matter with .txt file extension.


nobiot 
Sent from my iPhone

> On 10. Dec 2023, at 20:40, André Fincato <andre@andrefincato.info> wrote:
> 
> Hi hi,
> 
> I hope this question hasn't been asked already, as I searched the archives with no avail.
> 
> I would like to start using Denote, and adapt it to my existing workflow — which is:
> 
> keeping notes as `.txt` files, mostly as a mix of YAML (front-matter, some other "blocks" inside the body) and the body as markdown-ish (though I use it very sparsely).
> 
> Looking at the Denote docs, it seems I could manage to write a custom function to do this, except already Denote uses a TOML syntax for markdown-like files.
> 
> My question therefore: would making my own custom functions on top of Denote be going against Denote's "nature"? Eg, would using a YAML syntax for the front-matter be a possible source of problems in the long term?
> 
> 
> Many thanks!
> André
André Fincato <andre@andrefincato.info>
Details
Message ID
<5E8A0DB7-8552-469A-8366-993C8D72E824@andrefincato.info>
In-Reply-To
<C8F98B4F-C1D1-483B-B773-123043DF2C4A@andrefincato.info> (view parent)
DKIM signature
pass
Download raw message
Even though it took me 3 months to look into, I just spent 30 mins now at last hacking with Denote.

I am happy to report I managed to let Denote create a `.txt` file with a custom front-matter, YAML style.

Thanks Noboru to get back to me instantly, and Prot for this amazing package!
Details
Message ID
<48277771-BE35-4F57-BC9C-93C564B9083F@nobiot.com>
In-Reply-To
<5E8A0DB7-8552-469A-8366-993C8D72E824@andrefincato.info> (view parent)
DKIM signature
missing
Download raw message
You are welcome, André.
nobiot 
Sent from my iPhone

> On 5. Mar 2024, at 20:10, André Fincato <andre@andrefincato.info> wrote:
> 
> Even though it took me 3 months to look into, I just spent 30 mins now at last hacking with Denote.
> 
> I am happy to report I managed to let Denote create a `.txt` file with a custom front-matter, YAML style.
> 
> Thanks Noboru to get back to me instantly, and Prot for this amazing package!
Reply to thread Export thread (mbox)