Replies: 3 comments 3 replies
-
I would very much like to try implementing this, but I've no idea where to start. @srid do you have any guides on contributing? I've seen the CONTRIBUTING.md, but it only goes through how to setup the development environment. Do you have any tips on where to begin the journey of adding plugins, or just basically "read the source code until you get it"? |
Beta Was this translation helpful? Give feedback.
-
@jilleJr I would be happy to help. Matrix chat is a good place to get fast dev help. How familiar are you with Haskell? The plugin API is very much still a WIP, but you can start from any of the plugins here. After that, it is very much "read the source code until you get it" (with some help from chat). @jared-w had some ideas on creating a |
Beta Was this translation helpful? Give feedback.
-
As an aside, I'm experimenting with an entirely new model of data transformation (and plugins) based on Unix pipelines (see here) -- g. |
Beta Was this translation helpful? Give feedback.
-
Since it's common to version control neuron via Git, you do get some "free" version history of all the zettels.
I see two use cases for this.
Displaying a change history at the bottom of a zettel. Maybe collapsed by default, but still available, where it's more or less just taking the git commit history for the file. Things like when it was changed and by whom. Maybe even linking to the Git commit over at GitHub if you have that integration set up.
Using Git for this is nice because Git also keeps tracks of file renames if you supply
git log
with the--follow
argument. Using this, you could potentionally generate page redirects for renamed zettels. Just a basic page showing "This page was moved to: the-new-url.html".There's the edge case as well where you rename file A.md to B.md, and then from B.md to C.md. Then you rename some other file, D.md, to B.md. Given the history of the files (which Git keeps track of, still just using the
--follow
argument), you could add a small notice at the top or bottom of this new B.md (prev D.md) file saying "This page was moved and replaced. Looking for C.html?"This would allow better futureproofing by not discouraging renames of zettels.
Talking implementation then this would obviously be a plugin of sort. I do not know what other SCM people are using for neuron but there are probably some other variants out there so making it extensible with for example Plastic SCM or mercurial instead would probably be a good idea.
Beta Was this translation helpful? Give feedback.
All reactions