summaryrefslogtreecommitdiffstats
path: root/src/repl.rs
AgeCommit message (Collapse)AuthorLines
2023-03-06refactor: split src/repl.rs to submodules (#22)sigoden-432/+0
2023-03-06feat: add `.prompt` command (#21)sigoden-10/+35
* feat: add `.prompt` command * set temp role name
2023-03-05feat: add `.set` command (#20)sigoden-84/+41
* feat: add `.set` command * Add config.role
2023-03-05refactor: rename config.no_highlight to highlight (#19)sigoden-4/+4
2023-03-05feat: repl command replaces `.editor` with `.multiline` (#18)sigoden-16/+49
You can use `.multiline` command to put multiline content ``` 〉.multiline { ::: abc ::: cdf ::: } ``` It's much easier than `.editor`.
2023-03-05chore: refactor error encapsulationsigoden-8/+6
2023-03-05refactor: optimize clear screen (#16)sigoden-3/+8
2023-03-05refactor: adjusted command name (#14)sigoden-27/+26
* refactor: adjusted command name .clear => .clear screen .clear-history => .clear history .clear-role => .clear role * re-order commands in help text
2023-03-05refactor: optimize role prompt (#13)sigoden-4/+4
2023-03-05refactor: message record format (#12)sigoden-0/+7
``` i am excited -------- 😃💥🎉 -------- ```
2023-03-05feat: add `.info` command (#11)sigoden-10/+59
2023-03-05feat: add `.copy` command (#10)sigoden-11/+20
2023-03-05feat: add `.editor` command (#9)sigoden-14/+12
* feat: add `.editor` command Use `.editor` to edit/input multiline text * support paste
2023-03-04refactor: no need tui, just render stream directly (#8)sigoden-9/+0
2023-03-04refactor: use tui for better stream render (#5)sigoden-8/+22
* feat: show question in the begining of stream render * refactor: use tui for better stream render * trivial updates * fine-tune stream text merging
2023-03-04refactor: replace config.highlight with config.no_highlight (#4)sigoden-3/+3
* refactor: replace config.highlight with config.no_highlight * update readme
2023-03-04feat: support highlight reply markdown (#3)sigoden-39/+87
* 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-03refactor: split into separate modssigoden-0/+299