💾 Archived View for midnight.pub › replies › 4304 captured on 2022-06-04 at 01:43:20. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
A few years ago I wrote a Lua script I called "comp" in honor of the thusly named "mh mail" subcommand.. which opens a vim session... and when you back out of that see a prompt that'll take either a post title, or ctrl-d to exit. Supplying a title appends the post to a accumulator file.
But since the title one composed the post in sticks around, one can open a new browser tab and ctrl-o therein to bring up the file selector to cause the file to appear in that tab, from which one does a ctrl-a to select all, then ctrl-c to copy... then of course ctrl-v to paste into the post/reply creation buffer in Midnight Pub.
Sure, one could also just "less" the file in a terminal, but then we're talking multiple copy/pastes.. and sometimes newlines don't work in the browser form submission buffer the way you'd hope, e.g. you somehow wind up on the paste with either no line breaks... or two when in your vim session it was just one.
(Don't worry... I've never had a problem with hating on graphical browsers.... ;-) )
I wrote an 'all' command to show the entire accumulator file (to find things again)... can't remember if that was based on something else, or.... hmmm.
Anyway, it's a few extra steps than just grinding a post into the form and submitting, but it completely avoids the misery of losing something - and of course Murphy's Law demands that the only content that'll happen to is something one is exceptionally pleased with....
While it's in mind... anyone know of a linux command that somehow puts a file's content in the Chrome copy/paste buffer? I really can't stand having to use the trackpad... and I'm imagining spending too much time trying out web search terms/combinations to finally maybe sorta kinda be directed to useful information....
Inquiry, honestly, I understood about 4% of that post, but I 100% appreciate the detail within it. I have not done much (if any) writing via the command line, though I have seen entire diary/journal "apps" that can be used with the command line, and I thought: "there's some hackery stuff that I should get myself into!"
But yea, the copy/paste scenario of writing off-blog and then putting it into a blog editor, I didn't pick up on that when I started out years ago, and now I am Long In The Tooth, and it would take a metaphorical stick of dynamite to get me to "change (or see the error of) my ways".
Fun stuff, though