https://github.com/acgtools/trace-moe-go
A TUI app for finding anime scenes by image. 用于搜索动漫图片出处的 TUI 应用
https://github.com/acgtools/trace-moe-go
anime cli cli-app go golang open-source opensource tui tui-app
Last synced: 5 months ago
JSON representation
A TUI app for finding anime scenes by image. 用于搜索动漫图片出处的 TUI 应用
- Host: GitHub
- URL: https://github.com/acgtools/trace-moe-go
- Owner: acgtools
- License: mit
- Created: 2023-12-02T18:32:42.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-09T18:33:20.000Z (over 2 years ago)
- Last Synced: 2024-05-17T00:27:58.378Z (about 2 years ago)
- Topics: anime, cli, cli-app, go, golang, open-source, opensource, tui, tui-app
- Language: Go
- Homepage:
- Size: 656 KB
- Stars: 18
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# trace-moe-go
English | [简体中文](./README_ZH_CN.md)
A TUI app for finding anime scenes by image using [trace.moe](https://trace.moe/) API.
If this repo is helpful to you, please consider giving it a star (o゜▽゜)o☆ . Thank you OwO.
> Random Wink OvO


## Installation
### Using `go`
```sh
$ go install -ldflags "-s -w" github.com/acgtools/trace-moe-go
```
### Download from releases
[release page](https://github.com/acgtools/trace-moe-go/releases)
## Quick Start
```sh
$ moe-go -h
A TUI app for finding anime scene by image, using trace.moe api
Usage:
moe-go [command]
Available Commands:
file search image by file
help Help about any command
Flags:
-h, --help help for moe-go
-v, --version version for moe-go
Use "moe-go [command] --help" for more information about a command.
```
### Ensure your terminal charset is UTF-8
#### Windows
```cmd
> chcp
Active code page: 65001
# if code page is not 65001(utf-8), change it temporarily
> chcp 65001
```
If you want to set the default charset, follow the steps:
1. Start -> Run -> regedit
2. Go to `[HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\Autorun]`
3. Change the value to `@chcp 65001>nul`
If `Autorun` is not present, you can add a `New String`.
This approach will auto-execute `@chcp 65001>nul` when `cmd` starts.
#### Linux
```sh
$ echo $LANG
en_US.UTF-8
```
### Find by image file
```sh
$ moe-go file
```
Keys:
- `up`, `down`: move the cursor
- `space` ,`enter`: select one result
- `q`: quit program
#### Example


## Issue
Feel free to create issues to report bugs or request new features.