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

File zettels plugin #531

Closed srid closed 3 years ago

srid commented 3 years ago

I envision this plugin to work like dirtree plugin. Where dirtree maps directories to zettels, this plugin would map an arbitrary (non-markdown) file to a zettel. Imagine:

memes/Meme-A.jpg
memes/Haskell memes/Haskell in Frontend.jpg

The file zettel plugin would create two zettels automatically, with IDs Meme-A and Haskell in Frontend. If the dirtree plugin is enabled, it would also create two more zettels with IDs memes and Haskell memes. The meme zettels would be empty, but would link to the associated file (if the file is an image, it should appear inline). An user can create, say, Haskell in Frontend.md to annotate the given file.

How useful would this be? A plugin like this can be used to create a way to browse a file tree, containing anything from images to PDFs.

srid commented 3 years ago

This might require some architectural change to support arbitrary file format as zettels.

And then, we can introduce inline linking (![[Haskell in Frontend]]) syntax to act as an alias to the somewhat annoyingly verbose ![](static/Memes/Haskell%20in%20Frontend.jpg). To begin with, this should support images. But later, one can envision it dealing with other formats by embedding them inline (if it is Markdown, for example) or using iframe trick to embed it if it is a PDF, etc.

srid commented 3 years ago

Supplant this with https://help.obsidian.md/How+to/Embed+files

srid commented 3 years ago

This is happening in emanote: https://note.ema.srid.ca/demo/file-links

srid commented 3 years ago

This is done in Emanote. https://note.ema.srid.ca/demo/file-links

Closing per https://neuron.zettel.page/next ... to further discuss this idea, post in Emanote repo.