diff --git a/Cargo.lock b/Cargo.lock index 1a68875..73fbf63 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1795,7 +1795,7 @@ checksum = "213b7324336b53d2414b2db8537e56544d981803139155afa84f76eeebb7a546" [[package]] name = "xplr" -version = "0.21.2" +version = "0.21.3" dependencies = [ "ansi-to-tui", "anyhow", diff --git a/Cargo.toml b/Cargo.toml index 84db04b..48bd3e1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ path = './benches/criterion.rs' [package] name = 'xplr' -version = '0.21.2' +version = '0.21.3' authors = ['Arijit Basu '] edition = '2021' description = 'A hackable, minimal, fast TUI file explorer' diff --git a/docs/en/src/upgrade-guide.md b/docs/en/src/upgrade-guide.md index a7f2e76..417bff4 100644 --- a/docs/en/src/upgrade-guide.md +++ b/docs/en/src/upgrade-guide.md @@ -45,7 +45,7 @@ compatibility. ### Instructions -#### [v0.20.2][48] -> [v0.21.2][49] +#### [v0.20.2][48] -> [v0.21.3][49] - Some plugins might stop rendering colors. Wait for them to update. - Rename `xplr.config.general.sort_and_filter_ui.search_identifier` to @@ -81,7 +81,7 @@ compatibility. - `:ss` to create softlink of the selected items. - `:sh` to create hardlink of the selected items. - `:se` to edit selection list in your $EDITOR. - - Better conflict handling: add suffix rather than overriding/skipping. + - Better conflict handling: prompt for action. - Navigate between the selected paths using the following messages: - FocusPreviousSelection (`ctrl-p`) - FocusNextSelection (`ctrl-n`) @@ -118,6 +118,7 @@ compatibility. - xplr.util.shell_escape - Executables will me marked with the mime type: `application/x-executable`. - macOS legacy coreutils will be generally supported, but please update it. +- Since v0.21.2 you can use the on_selection_change hook. Thanks to @noahmayr for contributing to a major part of this release. @@ -516,5 +517,5 @@ Else do the following: [46]: https://github.com/sayanarijit/xplr/releases/tag/v0.18.0 [47]: https://github.com/sayanarijit/xplr/releases/tag/v0.19.4 [48]: https://github.com/sayanarijit/xplr/releases/tag/v0.20.2 -[49]: https://github.com/sayanarijit/xplr/releases/tag/v0.21.2 +[49]: https://github.com/sayanarijit/xplr/releases/tag/v0.21.3 [50]: https://github.com/lotabout/skim#search-syntax diff --git a/src/lua/mod.rs b/src/lua/mod.rs index a5710be..0a67a80 100644 --- a/src/lua/mod.rs +++ b/src/lua/mod.rs @@ -160,24 +160,24 @@ mod tests { assert!(check_version(VERSION, "foo path").is_ok()); // Current release if OK - assert!(check_version("0.21.2", "foo path").is_ok()); + assert!(check_version("0.21.3", "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.20.2", "foo path").is_err()); + assert!(check_version("0.20.3", "foo path").is_err()); // Prev bugfix release is OK - assert!(check_version("0.21.1", "foo path").is_ok()); + assert!(check_version("0.21.2", "foo path").is_ok()); // Next major release is ERR - assert!(check_version("1.20.2", "foo path").is_err()); + assert!(check_version("1.20.3", "foo path").is_err()); // Next minor release is ERR - assert!(check_version("0.22.2", "foo path").is_err()); + assert!(check_version("0.22.3", "foo path").is_err()); // Next bugfix release is ERR (Change when we get to v1) - assert!(check_version("0.21.3", "foo path").is_err()); + assert!(check_version("0.21.4", "foo path").is_err()); } }