gocat is a modern, interactive terminal tool for viewing and editing Go game records in SGF (Smart Game Format). It offers a powerful, keyboard-driven interface to navigate, annotate, and modify game records directly from your terminal, making it ideal for Go players and reviewers.
Install gocat via Homebrew:
brew tap hzhang08/gocat
brew install gocatInstall gocat via Cargo:
cargo install gocat- Update version in
Cargo.tomland commit - Run
cargo publish --dry-run - Run
cargo publish - Check out
mainbranch on Mac - Make sure rust has architecture
x86_64-apple-darwinandaarch64-apple-darwininstalled, by runningrustup target list - Run
cargo build --target x86_64-apple-darwin --releaseandcargo build --target aarch64-apple-darwin --release - go to
target/x86_64-apple-darwin/releaseandtarget/aarch64-apple-darwin/releasedirectories and runtar -czvf gocat-x86_64-apple-darwin.tar.gz gocatandtar -czvf gocat-aarch64-apple-darwin.tar.gz gocat - To get sha256 of the tar files, run
shasum -a 256 gocat-x86_64-apple-darwin.tar.gzandshasum -a 256 gocat-aarch64-apple-darwin.tar.gz - Go to Github gocat repository and create a new release with the tar files
- Go to homebrew-gocat repository, update
Formula/gocat.rbwith the new version and sha256 sums - Done
To launch the interactive SGF viewer/editor:
gocat <your_file.sgf>Replace <your_file.sgf> with the path to your SGF file.
qQuitn/→Next movep/←Previous move]Next commented move[Previous commented movegGoto move numbermModify current move/Search for coordinatecAdd/Edit move commenttAdd/Edit trianglesiInsert new movexRemove current movehShow this helpEsc/EnterClose help or input dialogs