Upgrade to 0.16.0

This commit is contained in:
Arijit Basu 2021-11-10 07:47:41 +05:30 committed by Arijit Basu
parent a5a71c9191
commit 9d088239ea
4 changed files with 32 additions and 10 deletions

2
Cargo.lock generated
View File

@ -1112,7 +1112,7 @@ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
[[package]]
name = "xplr"
version = "0.15.2"
version = "0.16.0"
dependencies = [
"ansi-to-tui",
"anyhow",

View File

@ -1,6 +1,6 @@
[package]
name = "xplr"
version = "0.15.2" # Update lua.rs
version = "0.16.0" # Update lua.rs
authors = ["Arijit Basu <sayanarijit@gmail.com>"]
edition = "2018"
description = "A hackable, minimal, fast TUI file explorer"

View File

@ -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
<sub>Like this project so far? **[Please consider contributing][5]**.</sub>
#### [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.
<sub>Like this project so far? **[Please consider contributing][5]**.</sub>
#### [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

View File

@ -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());
}
}