From 5443e880cea50b6a2f60dbca771658c7afcc2c9b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 2 Jul 2024 06:47:52 +0200 Subject: [PATCH 1/3] Bump ratatui from 0.26.3 to 0.27.0 (#10) Bumps [ratatui](https://github.com/ratatui-org/ratatui) from 0.26.3 to 0.27.0. - [Release notes](https://github.com/ratatui-org/ratatui/releases) - [Changelog](https://github.com/ratatui-org/ratatui/blob/main/CHANGELOG.md) - [Commits](https://github.com/ratatui-org/ratatui/compare/v0.26.3...v0.27.0) --- updated-dependencies: - dependency-name: ratatui dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- Cargo.lock | 7 ++++--- Cargo.toml | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index eabda16..2a4cd3f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -752,19 +752,20 @@ dependencies = [ [[package]] name = "ratatui" -version = "0.26.3" +version = "0.27.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f44c9e68fd46eda15c646fbb85e1040b657a58cdc8c98db1d97a55930d991eef" +checksum = "d16546c5b5962abf8ce6e2881e722b4e0ae3b6f1a08a26ae3573c55853ca68d3" dependencies = [ "bitflags 2.5.0", "cassowary", "compact_str", "crossterm", - "itertools 0.12.1", + "itertools 0.13.0", "lru", "paste", "stability", "strum", + "strum_macros", "unicode-segmentation", "unicode-truncate", "unicode-width", diff --git a/Cargo.toml b/Cargo.toml index bfe4c89..798bbfc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ repository = "https://github.com/PatrickLerner/escrit" keywords = ["language-learning", "language"] [dependencies] -ratatui = { version = "0.26", features = ["unstable-rendered-line-info"] } +ratatui = { version = "0.27", features = ["unstable-rendered-line-info"] } crossterm = "0.27" anyhow = "1.0" itertools = "0.13" From 73a6960afa66c86ac29e4976798969e48e463bf0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 2 Jul 2024 06:48:02 +0200 Subject: [PATCH 2/3] Bump clap from 4.5.7 to 4.5.8 (#12) Bumps [clap](https://github.com/clap-rs/clap) from 4.5.7 to 4.5.8. - [Release notes](https://github.com/clap-rs/clap/releases) - [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md) - [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.7...v4.5.8) --- updated-dependencies: - dependency-name: clap dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- Cargo.lock | 12 ++++++------ Cargo.toml | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 2a4cd3f..a3fd82d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -210,9 +210,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.5.7" +version = "4.5.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5db83dced34638ad474f39f250d7fea9598bdd239eaced1bdf45d597da0f433f" +checksum = "84b3edb18336f4df585bc9aa31dd99c036dfa5dc5e9a2939a722a188f3a8970d" dependencies = [ "clap_builder", "clap_derive", @@ -220,9 +220,9 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.5.7" +version = "4.5.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7e204572485eb3fbf28f871612191521df159bc3e15a9f5064c66dba3a8c05f" +checksum = "c1c09dd5ada6c6c78075d6fd0da3f90d8080651e2d6cc8eb2f1aaa4034ced708" dependencies = [ "anstream", "anstyle", @@ -232,9 +232,9 @@ dependencies = [ [[package]] name = "clap_derive" -version = "4.5.5" +version = "4.5.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c780290ccf4fb26629baa7a1081e68ced113f1d3ec302fa5948f1c381ebf06c6" +checksum = "2bac35c6dafb060fd4d275d9a4ffae97917c13a6327903a8be2153cd964f7085" dependencies = [ "heck", "proc-macro2", diff --git a/Cargo.toml b/Cargo.toml index 798bbfc..1db4321 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,7 +22,7 @@ serde = { version = "1.0", features = ["derive"] } serde_yaml = "0.9" open = "5.1.4" app_dirs2 = "2.5" -clap = { version = "4.5.7", features = ["derive"] } +clap = { version = "4.5.8", features = ["derive"] } tts = "0.26.1" libc = "0.2" From 3ef0a24bea9975c438aa7ae224b78ea7cd0e78df Mon Sep 17 00:00:00 2001 From: Patrick Lerner Date: Tue, 2 Jul 2024 06:51:18 +0200 Subject: [PATCH 3/3] Update README.md --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5e0a234..d81f860 100644 --- a/README.md +++ b/README.md @@ -15,9 +15,12 @@ Ukrainian as no config options are provided currently to change this). ![](https://raw.githubusercontent.com/PatrickLerner/escrit/main/assets/screenshot.png) -## Run +## Install & Usages -`cargo run -- %file` to open a file in reading mode. +You can find the package on crates.io and can install it as `cargo install escrit`. Then you can run it like so: + +- `escrit text.txt` +- `pbpaste | escrit` (macos to read clipboard input) ## Keys / Usages @@ -51,3 +54,4 @@ be in the `escrit` directory. ## Dev Notes - Open line coverage of tests: `cargo llvm-cov --open` +- While developing you can run it as `cargo run -- %file` to open a file in reading mode.