mirror of
https://github.com/TaKO8Ki/gobang
synced 2024-11-15 18:13:50 +00:00
69 lines
1.5 KiB
Markdown
69 lines
1.5 KiB
Markdown
<div align="center">
|
|
|
|
# gobang
|
|
|
|
gobang is currently in alpha
|
|
|
|
A cross-platform terminal database tool written in Rust
|
|
|
|
[![github workflow status](https://img.shields.io/github/workflow/status/TaKO8Ki/gobang/CI/main)](https://github.com/TaKO8Ki/gobang/actions) [![crates](https://img.shields.io/crates/v/gobang.svg?logo=rust)](https://crates.io/crates/gobang)
|
|
|
|
![gobang](./resources/gobang.gif)
|
|
|
|
</div>
|
|
|
|
## Features
|
|
|
|
- Cross-platform support (macOS, Windows, Linux)
|
|
- Multiple Database support (MySQL PostgreSQL, SQLite)
|
|
- Intuitive keyboard only control
|
|
|
|
## Installation
|
|
|
|
### Cargo
|
|
|
|
If you already have a Rust environment set up, you can use the `cargo install` command:
|
|
|
|
```
|
|
$ cargo install --version 0.1.0-alpha.1 gobang
|
|
```
|
|
## Keymap
|
|
|
|
| Key | Description |
|
|
| ---- | ---- |
|
|
| <kbd>h</kbd> | Scroll left |
|
|
| <kbd>j</kbd> | Scroll down |
|
|
| <kbd>k</kbd> | Scroll up |
|
|
| <kbd>l</kbd> | Scroll right |
|
|
| <kbd>Ctrl</kbd> + <kbd>d</kbd> | Scroll down multiple lines |
|
|
| <kbd>Ctrl</kbd> + <kbd>u</kbd> | Scroll up multiple lines |
|
|
| <kbd>y</kbd> | Copy a cell value |
|
|
| <kbd>→</kbd> | Move focus to right |
|
|
| <kbd>←</kbd> | Move focus to left |
|
|
| <kbd>/</kbd> | Filter |
|
|
|
|
## Configuration
|
|
|
|
The location of the file depends on your OS:
|
|
|
|
- macOS: `$HOME/.config/gobang/config.toml`
|
|
- Linux: `$HOME/.config/gobang/config.toml`
|
|
- Windows: `%APPDATA%/gobang/config.toml`
|
|
|
|
The following is a sample config.toml file:
|
|
|
|
```toml
|
|
[[conn]]
|
|
type = "mysql"
|
|
user = "root"
|
|
host = "localhost"
|
|
port = 3306
|
|
|
|
[[conn]]
|
|
type = "mysql"
|
|
user = "root"
|
|
host = "localhost"
|
|
port = 3306
|
|
database = "foo"
|
|
```
|