summaryrefslogtreecommitdiffstats
path: root/src/repl/handler.rs
AgeCommit message (Collapse)AuthorLines
2023-10-31feat: support custom theme (#187)sigoden-1/+1
2023-10-30feat: add `.info role` and `.info session` (#183)sigoden-5/+23
2023-10-30feat: deprecate .clear command (#180)sigoden-14/+14
2023-10-30fix: bugs between sesison/role (#178)sigoden-1/+1
2023-10-30feat: deprecate prompt, remove `--prompt` and `.prompt` (#176)sigoden-5/+0
2023-10-30chore: remove unnecessary clippy macrossigoden-3/+0
2023-10-30feat: support textwrap (#171)sigoden-37/+14
* 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-28feat: enhance session/conversation (#162)sigoden-14/+15
* feat: enhance session/conversation * updates * updates * cut version v0.9.0-rc2 * add .session name completion
2023-10-27fix: .copy don't works on some linux distro (#161)sigoden-4/+18
2023-10-26refactor: improve code quanitysigoden-1/+2
2023-10-26feat: add .read command (#145)Leo Bergnéhr-0/+9
2023-10-26refactor: improve code quanitysigoden-9/+4
remove tokio::runtime::Runtime from client
2023-10-26feat: support multi bots and custom url (#150)sigoden-4/+4
2023-07-10fix: minor code cleanup and pedantic lints (#134)Anthony Rubick-15/+15
2023-05-04feat: add `.copy` command (#119)sigoden-1/+9
2023-05-04feat: add `config.auto_copy` (#102)shane s-0/+1
* added config option to copy all ChatGPT output to clipboard * formatted with * updates --------- Co-authored-by: sigoden <sigoden@gmail.com>
2023-03-20feat: check token usage in dry_run mode (#82)sigoden-0/+1
2023-03-16feat: support multiple models (#71)sigoden-0/+5
2023-03-11feat: add support for NO_COLOR (#67)sigoden-13/+10
2023-03-11feat: support light theme (#65)sigoden-0/+2
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-11feat: provide `--prompt` for adding a prompt from cli (#62)sigoden-1/+1
2023-03-10chore: improve code quality, omit head 2 newlines in handler but in not clientsigoden-1/+4
2023-03-10fix: forbid .clear role in middle of conversationsigoden-1/+1
2023-03-09feat: add remain tokens indicator and max tokens guard (#50)sigoden-1/+1
2023-03-09fix: abort by ctrlc unexpectedly prints error message (#49)sigoden-4/+15
2023-03-09feat: support conversation (#48)sigoden-11/+17
2023-03-09refactor: imports order and groupsigoden-2/+2
2023-03-09refactor: replace Arc<Refcell<Config>> with Arc<Mutex<Config>> (#46)sigoden-7/+7
2023-03-08chore: optimize newline again (#43)sigoden-1/+13
* 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/+0
2023-03-08chore: no longer ignore any errorsigoden-5/+9
2023-03-08chore: optimize output newlinesigoden-4/+2
2023-03-08refactor: replace dump with print_now! (#35)sigoden-8/+17
2023-03-08fix: repl set save true not work if not rerun(#34)sigoden-20/+6
2023-03-07feat: command mode supports stream out (#31)sigoden-34/+19
* feat: command mode supports stream out * update cli
2023-03-07refactor: adjust repl (#30)sigoden-19/+24
- abandon .copy - rename .multiple => .editor - if command successed, do not output `Done` - if command failed, output `Error: <error message>`
2023-03-07refactor: optimize ctrl+c/ctrl+d abort handling (#27)sigoden-19/+18
2023-03-07refactor: use syntect for highlight, abandon mdcat (#26)sigoden-6/+2
* refactor: use syntect for highlight, abandon mdcat * split src/render.rs to sub modules. embed a default theme * simulate typing effect. * fix format
2023-03-06chore: improve code by renameing some functionsigoden-1/+1
2023-03-06chore: optimize codesigoden-16/+27
2023-03-06refactor: split src/repl.rs to submodules (#22)sigoden-0/+161