Replies: 4 comments 2 replies
-
it's a reasonable ask, but I think it would be difficult to implement something like I haven't used |
Beta Was this translation helpful? Give feedback.
-
Thanks Will. I appreciate your reasoning. a) Write the markdown source file with AreText (front matter followed by the body) `--- ---` b) I keep the source to render out to multiple common file types but I additionally run the Source.md through "fmt" Summary: If I can select only the body through AreText and run it through fmt this would accomplish two things.
Cheers |
Beta Was this translation helpful? Give feedback.
-
That makes sense, thanks for the context! I'd suggest setting up a custom menu command like this: - name: gemini
shellCmd: fmt --width=72 $FILEPATH | md2gmi > ${FILEPATH%.*}.gmi
save: true Explanation:
That said, I'm a bit surprised that I suspect this is a bug in - name: gemini
shellCmd: md2gemini -f $FILEPATH > ${FILEPATH%.*}.gmi
save: true I haven't used gemini myself, so take all that with a grain of salt. Good luck! |
Beta Was this translation helpful? Give feedback.
-
Okay, another day. A lot of amateur hacking narrows things down to these menu entries that work for me. gmi-export: does the whole gemini file coversion and export. I am happy with this. But writing a general purpose "save-as" menu choice is a bit beyond my concept.
|
Beta Was this translation helpful? Give feedback.
-
Working last night on writing some gemini protocol documents I realized
something I miss -- setting a margin inicator. Vim has a visual text width
setting: "set colorcolumn=72"
Now I am sure that passing the page to "fmt" to do the actual reformatting
of an existing file is fine. And I'll try* that out, but fmt has its limitations.
For a content writer there are eye-ball line by line choices to take into
account (with the help of a visual text-width column.)
What do you think? Maybe a possible config option? As always, thanks.
* umm actually, I tried but don't know how to do this. The go fmt
example in the docs doesn't seem to translate to using a standard fmt -
pipe.
Beta Was this translation helpful? Give feedback.
All reactions