diff --git a/Cargo.lock b/Cargo.lock index d73006b..582efbd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -77,9 +77,9 @@ dependencies = [ [[package]] name = "bumpalo" -version = "3.9.1" +version = "3.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4a45a46ab1f2412e53d3a0ade76ffad2025804294569aae387231a0cd6e0899" +checksum = "37ccbd214614c6783386c1af30caf03192f17891059cecc394b4fb119e363de3" [[package]] name = "cassowary" @@ -358,9 +358,9 @@ checksum = "02296996cb8796d7c6e3bc2d9211b7802812d36999a51bb754123ead7d37d026" [[package]] name = "indexmap" -version = "1.8.1" +version = "1.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f647032dfaa1f8b6dc29bd3edb7bbef4861b8b8007ebb118d6db284fd59f6ee" +checksum = "e6012d540c5baa3589337a98ce73408de9b5a25ec9fc2c6fd6be8f0d39e0ca5a" dependencies = [ "autocfg", "hashbrown", @@ -445,9 +445,9 @@ dependencies = [ [[package]] name = "luajit-src" -version = "210.3.4+resty073ac54" +version = "210.4.0+resty124ff8d" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "640b09e99575a442b4da0ef406a78188a1a4313bb9ead7b5b20ec12cc480130f" +checksum = "f76fb2e2c0c7192e18719d321c9a148f7625c4dcbe3df5f4c19e685e4c286f6c" dependencies = [ "cc", ] @@ -550,9 +550,9 @@ dependencies = [ [[package]] name = "once_cell" -version = "1.11.0" +version = "1.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b10983b38c53aebdf33f542c6275b0f58a238129d00c4ae0e6fb59738d783ca" +checksum = "7709cef83f0c1f58f666e746a08b21e0085f7440fa6a29cc194d68aac97a4225" [[package]] name = "oorandom" @@ -562,9 +562,9 @@ checksum = "0ab1bc2a289d34bd04a330323ac98a1b4bc82c9d9fcb1e66b63caa84da26b575" [[package]] name = "parking_lot" -version = "0.12.0" +version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87f5ec2493a61ac0506c0f4199f99070cbe83857b0337006a30f3e6719b8ef58" +checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" dependencies = [ "lock_api", "parking_lot_core", @@ -862,9 +862,9 @@ checksum = "f2dd574626839106c320a323308629dcb1acfc96e32a8cba364ddc61ac23ee83" [[package]] name = "syn" -version = "1.0.95" +version = "1.0.96" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fbaf6116ab8924f39d52792136fb74fd60a80194cf1b1c6ffa6453eef1c3f942" +checksum = "0748dd251e24453cb8717f0354206b91557e4ec8703673a4b30208f2abaf1ebf" dependencies = [ "proc-macro2", "quote", @@ -943,9 +943,9 @@ dependencies = [ [[package]] name = "tui-input" -version = "0.4.0" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59e209d9885c3f3559cc9849b1eca9726246be07a2a91aceb96b42c71c6c0ff9" +checksum = "b7b243fc45f29d5de2116c6bdf05b3ba2f0aec9e14b0508f9866ad004bffa3f8" dependencies = [ "crossterm", "serde", @@ -1156,7 +1156,7 @@ checksum = "c811ca4a8c853ef420abd8592ba53ddbbac90410fab6903b3e79972a631f7680" [[package]] name = "xplr" -version = "0.18.0" +version = "0.19.0" dependencies = [ "ansi-to-tui-forked", "anyhow", diff --git a/Cargo.toml b/Cargo.toml index 542d1ac..9149ba2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ path = './benches/criterion.rs' [package] name = 'xplr' -version = '0.18.0' +version = '0.19.0' authors = ['Arijit Basu '] edition = '2021' description = 'A hackable, minimal, fast TUI file explorer' @@ -55,7 +55,7 @@ version = "0.4.19" features = ['serde'] [dependencies.indexmap] -version = "1.8.1" +version = "1.8.2" features = ['serde'] [dependencies.mlua] @@ -63,7 +63,7 @@ version = "0.7.4" features = ['luajit', 'vendored', 'serialize', 'send'] [dependencies.tui-input] -version = "0.4.0" +version = "0.4.2" features = ['serde'] [dev-dependencies] diff --git a/docs/en/src/upgrade-guide.md b/docs/en/src/upgrade-guide.md index 82cb7ae..c76829d 100644 --- a/docs/en/src/upgrade-guide.md +++ b/docs/en/src/upgrade-guide.md @@ -45,6 +45,34 @@ compatibility. ### Instructions +#### [v0.18.0][46] -> [v0.19.0][47] + +- BREAKING: The builtin modes cannot be accessed using space separated names + anymore. Use underscore separated mode names. For e.g. + `SwitchModeBuiltin: create file` becomes `SwitchModeBuiltin: create_file` and + so on. Kindly go through your config, find and update them, or copy from the + latest `init.lua`. +- Now you can use `xplr.config.general.global_key_bindings` to define a set of + key bindings that are available by default in every mode. e.g. `esc` + and `ctrl-c`, and remove boilerplate code from your config. +- You can use the new builtin mode `go_to_path` which can be used for typing or + pasting paths to enter into or to focus on. Type `g` `p` to enter this mode. +- Now you can use basic tab completion in the `go_to_path`, `create_file`, + `create_directory`, `rename` and `duplicate_as` modes. +- Use the builtin function `xplr.fn.builtin.try_complete_path` to add easy tab + completion support into your own configuration. +- Now you can open OSC 7 compatible terminals into the `xplr`'s current working + directory by spawning new terminal sessions via the terminal supported key + bindings. +- Use `NO_COLOR` environment variable to disable OSC 7 compliance along with + colors. +- If you have fully copied the default `init.lua` locally, you might want to + go through the latest improvements in `init.lua`. Specifically the `search`, + `filter` and `sort` modes. Also, search for `SetInputPrompt` and the `tab` + key bindings. + +Like this project so far? **[Please consider contributing][5]**. + #### [v0.17.6][45] -> [v0.18.0][46] - Key binding `f` `r` and `f` `R` will now filter using regex. @@ -74,8 +102,6 @@ compatibility. - "BySymlinkCreated" - "BySymlinkLastModified" -Like this project so far? **[Please consider contributing][5]**. - #### [v0.16.4][44] -> [v0.17.6][45] - Deprecated `app.directory_buffer`, `app.history`, and `app.last_modes` in @@ -354,3 +380,4 @@ Else do the following: [44]: https://github.com/sayanarijit/xplr/releases/tag/v0.16.4 [45]: https://github.com/sayanarijit/xplr/releases/tag/v0.17.6 [46]: https://github.com/sayanarijit/xplr/releases/tag/v0.18.0 +[47]: https://github.com/sayanarijit/xplr/releases/tag/v0.19.0 diff --git a/src/lua.rs b/src/lua.rs index 160c4a8..e0ba6f1 100644 --- a/src/lua.rs +++ b/src/lua.rs @@ -146,24 +146,24 @@ mod tests { assert!(check_version(VERSION, "foo path").is_ok()); // Current release if OK - assert!(check_version("0.18.0", "foo path").is_ok()); + assert!(check_version("0.19.0", "foo path").is_ok()); // Prev major release is ERR // - Not yet // Prev minor release is ERR (Change when we get to v1) - assert!(check_version("0.17.0", "foo path").is_err()); + assert!(check_version("0.18.0", "foo path").is_err()); // Prev bugfix release is OK - // assert!(check_version("0.18.-1", "foo path").is_ok()); + // assert!(check_version("0.19.-1", "foo path").is_ok()); // Next major release is ERR - assert!(check_version("1.18.0", "foo path").is_err()); + assert!(check_version("1.19.0", "foo path").is_err()); // Next minor release is ERR - assert!(check_version("0.19.0", "foo path").is_err()); + assert!(check_version("0.20.0", "foo path").is_err()); // Next bugfix release is ERR (Change when we get to v1) - assert!(check_version("0.18.1", "foo path").is_err()); + assert!(check_version("0.19.1", "foo path").is_err()); } }