kickstart icon indicating copy to clipboard operation
kickstart copied to clipboard

Windows doesn't allow parentheses in path

Open Arteneko opened this issue 5 years ago • 5 comments

Following #39, I tried to use the date thingy to auto-date my articles, but it seems like () isn't a windows-compatible path character.

auto-date

Arteneko avatar Feb 07 '20 20:02 Arteneko

Hmm I don't think calling functions in filenames was meant to be allowed, it's extremely niche.

Keats avatar Feb 07 '20 20:02 Keats

So uh, what about, as an alternative, aliases?

Like, you could define an alias for a given template in your template.toml and reuse that alias?

That would effectively fix every character problem that currently exists, and would be a fairly simple first-step treatment.

What do you think of that?

Arteneko avatar Feb 08 '20 00:02 Arteneko

Hmm I'm not sure about that, it seems that it would make the content/configuration way more complex for some very nich usecases: templates are not rendered from what you see, you need to check the config file to know what it's going to be.

Keats avatar Feb 08 '20 11:02 Keats

I just thought about something.

Can we use Tera in defaults?

That would allow to execute the function / filter combo, and I'd just need to skip the question.

Arteneko avatar Feb 12 '20 16:02 Arteneko

I thought it was a great idea initially but I've changed my mind a bit. This opens people expecting to be able to use other variables in default expressions which might be amazing but I can't really of a usecase where I wouldn't just put the filters/fn in the files directly. That only leaves filenames/directories which we cover for basic filters without arguments not more complex/functions. I don't know if it's worth the complexity

Keats avatar Feb 12 '20 19:02 Keats