summaryrefslogtreecommitdiffstats
path: root/src/render/mod.rs
AgeCommit message (Collapse)AuthorLines
2023-11-02chore: add one newline when caught repl errorsigoden-1/+1
2023-11-02refactor: improve code quanity (#197)sigoden-3/+3
- move model_info.rs/message.rs to clients/ - rename SharedConfig to GlobalConfig
2023-11-02refactor: improve code quanity (#196)sigoden-8/+76
- rewrite Repl, remove ReplHandler - move ReplyStreamHandler to repl/ and rename it to ReplyHandler - deprecate utils::print_now - refactor session info
2023-11-01refactor: use reqwest-eventsource as sse clientsigoden-1/+1
2023-10-31feat: support custom theme (#187)sigoden-1/+1
2023-10-30chore: remove unnecessary clippy macrossigoden-2/+0
2023-10-30feat: support textwrap (#171)sigoden-12/+13
* feat: support textwrap * improve cmd_render_stream * done cmd_render_stream * add `-w` alias to `--wrap` * done repl_render_stream * add `config.wrap_code` * remove cached config.wrap_width * fix unxpected duplicate lines on kitty * refactor markdown render * improve render * fix test
2023-10-26feat: support multi bots and custom url (#150)sigoden-2/+2
2023-07-10fix: minor code cleanup and pedantic lints (#134)Anthony Rubick-3/+5
2023-03-11feat: add support for NO_COLOR (#67)sigoden-2/+3
2023-03-11feat: support light theme (#65)sigoden-2/+3
There are two ways to enable the light theme: - add `light_theme: true` to config.yaml - use `AICHAT_LIGHT_THEME=true` env var
2023-03-09refactor: imports order and groupsigoden-0/+1
2023-03-08chore: optimize newline again (#43)sigoden-2/+2
* chore: optimize newline again command mode: should no extra newline chat mode: should have one newline * fix windows newline * fix macos newline
2023-03-08chore: improve code by getting prompt from config (#39)sigoden-2/+1
2023-03-08fix: windows no stream output (#37)sigoden-4/+4
2023-03-08chore: no longer ignore any errorsigoden-1/+6
2023-03-07feat: command mode supports stream out (#31)sigoden-117/+36
* feat: command mode supports stream out * update cli
2023-03-07refactor: support highlighting more languages (#28)sigoden-8/+13
2023-03-07refactor: optimize ctrl+c/ctrl+d abort handling (#27)sigoden-10/+10
2023-03-07refactor: use syntect for highlight, abandon mdcat (#26)sigoden-0/+120
* refactor: use syntect for highlight, abandon mdcat * split src/render.rs to sub modules. embed a default theme * simulate typing effect. * fix format