From b276dfedd2d13de9918b9b87a3d543e7b5eca95e Mon Sep 17 00:00:00 2001 From: sigoden Date: Mon, 30 Oct 2023 10:07:01 +0800 Subject: feat: support textwrap (#171) * 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 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index 167227a..29cc568 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -27,7 +27,6 @@ tokio = { version = "1.26.0", features = ["rt", "time", "macros", "signal", "io- crossbeam = "0.8.2" crossterm = "0.26.1" chrono = "0.4.23" -unicode-width = "0.1.10" bincode = "1.3.3" ctrlc = "3.2.5" parking_lot = "0.12.1" @@ -39,6 +38,7 @@ bstr = "1.3.0" nu-ansi-term = "0.47.0" arboard = { version = "3.2.0", default-features = false } async-trait = "0.1.74" +textwrap = "0.16.0" [dependencies.reqwest] version = "0.11.14" -- cgit v1.2.3