Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
akiomik committed Jan 1, 2024
1 parent 02085c3 commit bc3a422
Showing 1 changed file with 56 additions and 3 deletions.
59 changes: 56 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,64 @@

[![CI](https://github.com/akiomik/nostui/workflows/CI/badge.svg)](https://github.com/akiomik/nostui/actions)

tui client for nostr
A TUI client for [Nostr](https://nostr.com)

## Getting Started

### Requirements

- git
- rust

### Installation

1. Clone this repository and move to the directory:

```shell
cargo build --release
target/release/nostui
git clone https://github.com/akiomik/nostui
cd nostui
```

2. Install `nostui` binary:

```shell
# Install to ~/.cargo/bin/nostui
cargo install --path .
```

### Setup

1. Create a `config.json` to the following path:

- Linux: `~/.config/notsui/config.json`
- Windows: `~\AppData\Roaming\0m1\nostui`
- macOS: `~/Library/Application Support/io.0m1.nostui`

2. Add your privatekey to the `config.json`:

```jsonc
{
"privatekey": "nsec1...",
"relays": ["wss://nos.lol"] // optional
}
```

## Usage

### Commands

```shell
nostui
```

### Default Keybindings

| Keybinding | Description |
| --------------------- | ------------------ |
| `k` `up` | Scroll up |
| `j` `down` | Scroll down |
| `q` `Ctrl-c` `Ctrl-d` | Quit |
| `home` `gg` | Scroll to top |
| `end` `Shift-g` | Scroll to bottom |
| `Ctrl-z` | Suspend |
| `esc` | Unselect |

0 comments on commit bc3a422

Please sign in to comment.