Commit Graph

15 Commits

Author SHA1 Message Date
sigoden
2ac0155fa3
feat: accept pipe (#17)
`cat data | aichat` works
2023-03-05 11:11:15 +08:00
sigoden
598c31c3d9
refactor: optimize role prompt (#13) 2023-03-05 07:52:36 +08:00
sigoden
7a60a36367
feat: add .info command (#11) 2023-03-05 05:50:30 +08:00
sigoden
069583098f
refactor: no need tui, just render stream directly (#8) 2023-03-04 22:18:42 +08:00
Marcus Ziadé
afe3f23831
chore: update README.md (#7) 2023-03-04 21:43:29 +08:00
sigoden
6dee235597 chore: release v0.2.0 2023-03-04 19:24:57 +08:00
sigoden
dbdb2ed125
refactor: replace config.highlight with config.no_highlight (#4)
* refactor: replace config.highlight with config.no_highlight

* update readme
2023-03-04 09:22:55 +08:00
sigoden
0fa1ae215a
feat: support highlight reply markdown (#3)
* feat: support highlight reply markdown

* migrate markdown highlighter from termimad to mdcat

* optimize render

No need to clear screen when there is no newline in reply token

* handle ctrl-c when rendering stream

* update readme

* fix ctrlc don't abort acquire_stream when establish connection

* ensure render_stream's dtect_ctrlc is exit before next readline

This will make reedline don't throw err 'The cursor position could not be read within a normal duration'
2023-03-04 09:02:57 +08:00
sigoden
2e511c1327 chore: optimize config path 2023-03-03 12:43:34 +08:00
sigoden
1cde32160b chore: update readme 2023-03-03 11:44:23 +08:00
sigoden
2ea37fc814 chore: update readme 2023-03-03 10:34:02 +08:00
sigoden
627a2d08ce refactor: config path and config data
use yaml other than toml for configuration.
use $AICHAT_CONFIG_DIR other than $HOME for config dir.
split roles to seperate config file
2023-03-03 10:11:23 +08:00
sigoden
9e8a5481cf feat: support save chat messages to file 2023-03-03 09:15:58 +08:00
sigoden
b516080a66 chore: update readme 2023-03-03 08:34:15 +08:00
sigoden
9343f96198 chore: add readme 2023-03-03 08:28:46 +08:00