Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bndw/vim-nostr
Publish nostr events from vim.
https://github.com/bndw/vim-nostr
nostr
Last synced: 13 days ago
JSON representation
Publish nostr events from vim.
- Host: GitHub
- URL: https://github.com/bndw/vim-nostr
- Owner: bndw
- License: agpl-3.0
- Created: 2024-02-21T19:37:33.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-02-21T20:25:47.000Z (10 months ago)
- Last Synced: 2024-06-21T15:02:40.754Z (6 months ago)
- Topics: nostr
- Language: Go
- Homepage:
- Size: 15.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# vim-nostr
Experimental tooling for publishing nostr events from vim.
Draft your post in vim and when you're ready to publish, run `:NostrPost`.
This will create and publish a kind 1 note to your relays.## Setup
1. Create the required config file at `~/.config/nostr/config.json`:
> Note: The config file is the same format used by [algia](https://github.com/mattn/algia?tab=readme-ov-file#configuration)
and [noscl](https://github.com/fiatjaf/noscl).```json
{
"relays": {
"wss://relay.damus.io": {
"read": true,
"write": true
}
},
"privatekey": ""
}
```2. Install the Go program that bridges vim and nostr:
```
go install github.com/bndw/vim-nostr@latest
```3. Install the vim-nostr vim plugin. We're going to use `vim-plug` but feel free to use other plugin managers instead.
```
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
git clone https://github.com/bndw/vim-nostr.git ~/.vim/plugged/vim-nostr
```Create a `~/.vimrc` with the following:
```
call plug#begin()
Plug 'bndw/vim-nostr'
call plug#end()
```