diff --git a/Cargo.lock b/Cargo.lock index 10b3bad..07e7612 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1112,7 +1112,7 @@ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" [[package]] name = "xplr" -version = "0.15.2" +version = "0.16.0" dependencies = [ "ansi-to-tui", "anyhow", diff --git a/Cargo.toml b/Cargo.toml index 906dd62..bfa76e6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "xplr" -version = "0.15.2" # Update lua.rs +version = "0.16.0" # Update lua.rs authors = ["Arijit Basu "] edition = "2018" 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 28cd2b5..3273a3a 100644 --- a/docs/en/src/upgrade-guide.md +++ b/docs/en/src/upgrade-guide.md @@ -45,6 +45,29 @@ compatibility. ### Instructions +#### [v0.15.2][43] -> [v0.16.0][44] + +- Deprecated `config.general.cursor`. The default terminal cursor will be used + for the time being. +- Opening xplr inside a symlink will not resolve the path. +- You can now replace most boilerplate configuration handling keys to send + `BufferInputFromKey`, `RemoveInputBufferLastCharacter`, + `RemoveInputBufferLastWord`, `SetInputBuffer = ""` etc. messages with a + single `UpdateInputBufferFromKey` message. +- You can now pass multiple paths as command-line arguments or via stdin to + select paths, e.g. `xplr - $PWD /path/to/select/1 /path/to/select/2`. +- Pass `--force-focus` to focus on the first path even if it's a directory, + e.g. `xplr . --force-focus`. +- Use new messages `LuaEval` and `LuaEvalSilently` to run Lua code without + needing to define a function. However, the `app` context won't be available. +- You can now use new key handlers in the config: + - on_alphanumeric + - on_character + - on_navigation + - on_function + +Like this project so far? **[Please consider contributing][5]**. + #### [v0.14.7][3] -> [v0.15.2][43] - Deprecated `config` field from `CallLua` argument. Use the globally available @@ -60,8 +83,6 @@ compatibility. mode. - Library users please refer to the latest API docs and examples. -Like this project so far? **[Please consider contributing][5]**. - #### [v0.13.7][2] -> [v0.14.7][3] - macOS users need to place their config file (`init.lua`) in @@ -278,3 +299,4 @@ Else do the following: [41]: https://github.com/sayanarijit/xplr/releases/tag/v0.3.0 [42]: https://github.com/sayanarijit/xplr/releases/tag/v0.14.4 [43]: https://github.com/sayanarijit/xplr/releases/tag/v0.15.2 +[44]: https://github.com/sayanarijit/xplr/releases/tag/v0.16.0 diff --git a/src/lua.rs b/src/lua.rs index 6eed2ac..ce15476 100644 --- a/src/lua.rs +++ b/src/lua.rs @@ -141,24 +141,24 @@ mod tests { assert!(check_version(VERSION, "foo path").is_ok()); // Current release if OK - assert!(check_version("0.15.2", "foo path").is_ok()); + assert!(check_version("0.16.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.14.2", "foo path").is_err()); + assert!(check_version("0.15.0", "foo path").is_err()); // Prev bugfix release is OK - assert!(check_version("0.15.1", "foo path").is_ok()); + // assert!(check_version("0.15.-1", "foo path").is_ok()); // Next major release is ERR - assert!(check_version("1.15.2", "foo path").is_err()); + assert!(check_version("1.16.0", "foo path").is_err()); // Next minor release is ERR - assert!(check_version("0.16.2", "foo path").is_err()); + assert!(check_version("0.17.0", "foo path").is_err()); // Next bugfix release is ERR (Change when we get to v1) - assert!(check_version("0.15.3", "foo path").is_err()); + assert!(check_version("0.16.1", "foo path").is_err()); } }