mirror of
https://github.com/TaKO8Ki/gobang
synced 2024-11-15 18:13:50 +00:00
1.6 KiB
1.6 KiB
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 |
---|---|
h | Scroll left |
j | Scroll down |
k | Scroll up |
l | Scroll right |
Ctrl + d | Scroll down multiple lines |
Ctrl + u | Scroll up multiple lines |
y | Copy a cell value |
→ | Move focus to right |
← | Move focus to left |
/ | 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:
[[conn]]
type = "mysql"
user = "root"
host = "localhost"
port = 3306
[[conn]]
type = "mysql"
user = "root"
host = "localhost"
port = 3306
database = "foo"