typemill / typemill

Typemill is a lightweight, flat-file CMS designed for simple, fast, and flexible website and eBook creation using Markdown.
https://typemill.net
MIT License
424 stars 60 forks source link

Index-less folders are un-indented #429

Open Alzarath opened 4 months ago

Alzarath commented 4 months ago

Problem: When a folder does not have an index.md or index.txt file, it fails to indent properly with the folder and the border color is white. Otherwise it functions normally.

Example in the file system:

starcraft-2/
├─ editor/
│  ├─ data/
│  │  ├─ channeled-spells
│  │  ├─ data-tokens
│  │  ├─ effects/

data has no index content file.

indexless-filesystem

Workaround: Include an index.md or index.txt file in the folder, empty or otherwise.

Expectation: I would expect the folder to behave as if it did have an empty content file.

It would also be nice if index.yaml applied to the folder without the content file. It currently does not.

Alzarath commented 4 months ago

I noticed the data folder isn't in the Frontend navigation, either. It occurs to me that the system uses .txt to store "pending" changes and .md to store "published" changes.

If I'm not misunderstanding, I think it would be best for the behavior to reflect as if there was an empty index.txt in the folder, with publishing resulting in the creation of an empty index.md file.

trendschau commented 4 months ago

It occurs to me that the system uses .txt to store "pending" changes and .md to store "published" changes.

Yes exactly. There should be no folders without an index.txt file, they are created automatically when you create a folder in the interactive navigation.

From your descriptions, I guess you have some special workaround or you add content manually?

Alzarath commented 4 months ago

Yes, I add content manually. I do not rely exclusively on TypeMill to view and modify my notes.