:% !post_note.sh ?

Reply to this note

Please Login to reply.

Discussion

#!/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.