srid / neuron

Future-proof note-taking and publishing based on Zettelkasten (superseded by Emanote: https://github.com/srid/emanote)
https://neuron.zettel.page
GNU Affero General Public License v3.0
1.52k stars 150 forks source link

Directory folgezettels [plugin] #497

Closed srid closed 3 years ago

srid commented 3 years ago

Neuron has an experimental feature (disabled by default; see here) for storing notes in sub-directories recursively. We can take it one step further by treating these directories as the folgezettel parent of its contents.

Consider the following directory layout:

foo/
foo/bar/qux.md

In this proposal, Neuron determines 3 zettels, with foo branching to bar that in turn branches to qux. Only qux exists as a file on disk; the other two are created on demand (similar to #379 in concept). The contents of foo and bar will be populated with the appropriate link query that displays their contents. Users may override this content by adding a foo.md and foo/bar.md, which will continue to (implicitly) branch of to their contents.

srid commented 3 years ago

Addendum:


EDIT (Dec 25): Hmm, I'm two-minded about it. For simplicity, perhaps we should just go with the original directory name, and have the user rename their folders should a conflict arise. For eg., rename Archive/2020/12 => Archive/2020/2020-12 (to prevent conflicts with day "12" from other months, and years)

srid commented 3 years ago

And,

CC @b0o especially as this is looking similar to their neuron-extras

srid commented 3 years ago

https://neuron.zettel.page/dirtree.html

RoyiAvital commented 3 years ago

In my opinion this project has 2 layers:

  1. The graph generation engine.
  2. The generation of the consumption form of the data (The website).

I think it will make sense to tag issues based on which layer they act on. For instance, having an automated generation of a web page per tag which by default shows the cloud of the Zettels using this tag ("Cloud" in the form of the result of the query [[z:zettels?tag=foo]] is a great idea in my mind.

Changing the graph and relations by adding a new object into the graph which is not user generated, is wrong in my opinion.

But regardless of my opinion, making easy to understand on which layer we're talking, in my opinion will generate a better discussion between the users.