Add AI translation, input history, line wrapping, /ctcp
- Auto-translate non-Latin messages via OpenAI-compatible API - Config in ~/.hircrc (created on first run, disabled by default) - Translation shown in italic below original message - Arrow up/down for input history (50 entries) - Long lines wrap properly on window redraw - /ctcp command for sending CTCP requests - Updated README with AI translation docs
This commit is contained in:
@@ -88,6 +88,23 @@ Each window maintains its own scrollback. Switching redraws the full history.
|
||||
Holck's Mirk, OS: Linux 6.x.x x86_64 :: This space available for rent
|
||||
```
|
||||
|
||||
## AI Translation
|
||||
|
||||
Optional auto-translation of messages in non-Latin scripts (Cyrillic, CJK, Arabic, etc.). Requires an OpenAI-compatible API (ollama, vLLM, or OpenAI).
|
||||
|
||||
Configure `~/.hircrc` (created on first run with empty/disabled values):
|
||||
|
||||
```
|
||||
ai_type=ollama
|
||||
ai_host=localhost:11434
|
||||
ai_key=
|
||||
ai_model=llama3
|
||||
ai_target_lang=english
|
||||
ai_skip_langs=swedish,english
|
||||
```
|
||||
|
||||
When configured, foreign-script messages are shown immediately with an italic translation appearing below after 1-5 seconds. Leave values empty to disable.
|
||||
|
||||
## License
|
||||
|
||||
Public domain.
|
||||
|
||||
Reference in New Issue
Block a user