if this shows up,
i finally figured out how to post a note directly from vi.
if this shows up,
i finally figured out how to post a note directly from vi.
⚡️⚡️⚡️
:% !post_note.sh ?
#!/bin/sh
vi ~/nostrnote
NNOTE=$(cat ~/nostrnote)
noscl publish "${NNOTE}"
rm ~/nostrnote
but I should do better and keybind it in ~/.nexrc
you’ve inspired an idea…brb
I was hoping I might :)
I have a little cli that posts a kind 1 notes from stdin. I just hacked some vimscript together that adds a :NostrPost function to post the buffer 😁
I get way to excited about nerd stuff like this!
to be fair your ideas inspired all of this! I will share code soon.
I'll see your :NostrPost, and I'll raise you posting a note from ed(1).
(I still want to see that CLI code tho :) )
hah does ed even have extensibility/scripting??
the original goal of the cli was a stdlib-only program that simply posts kind 1. in reality I need crypto that’s not provided by the stdlib and Ive yet to identify a secp256 library I want to use. for now it’s using go-nostr but i need to pick this back up.
I’m before the EMacs guys tell us that eMacs was a nostr client AND relay before Nostr was a thing.
You did it!