💾 Archived View for midnight.pub › posts › 948 captured on 2023-05-24 at 18:12:45. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-03-20)

-=-=-=-=-=-=-

Midnight Pub

omg, have mercy!

~tffb

~

Write a reply

Replies

~inquiry wrote (thread):

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....

~yretek wrote (thread):

Back in... too olden times, I used a plain text editor to avoid this issue.

(In fact, I used MS Word... but I don't want to confess that!)

~m15o wrote (thread):

Ohh so sorry to read that tmo >< sometimes there’s a good surprise and the browser “remembers” what was written when we hit the back button. Not always the case though… That’s a good suggestion, I’ll think of ways to address that. Great to have you around!