Open mnw700x opened 1 year ago
Hi, and thanks for filing this issue.
As you mentioned, Gopher doesn't look like it has a very large user base, but we're not necessarily against adding a new format. All of the formats are currently implemented as separate plugins (in this directory). So, a new Gopher one would do the same (and could use one of the current plugins as a base).
Support for fhis feature isn't a currently priority for us, but if it gets enough support and/or someone to volunteer to develop the plugin, we can definitely talk about including it in the default jrnl distribution.
Use Case/Motivation
I have a gopher blog (phlog) that is out of date because of the hassle of updating the gopher file and fixing up the formatting of the output for Gopher. I think that jrnl is pretty awesome and would do gopher pretty well. What I think would be cool is if there was a format
gopher
that would wrap the text at 70 characters wide and provide a gopher style link back to the parent directory at the bottom. If a user provides an output that points to a directory the file should be created with the file name being the date but we should also get a file called .gophermap that is a gopher map of the directory. This mimics the yaml output behavior a little bit.Gophermap format - https://github.com/gophernicus/gophernicus/blob/da3390089c2a856db1ab2e3bd9751b9a9101a33a/README.gophermap
Example Usage
jrnl --format gopher
jrnl --format gopher --output --file 'my_directory/'
Other Information
I know gopher isn't super popular but I think this would be a cool feature to have.