mirror of
https://github.com/sayanarijit/xplr.git
synced 2024-09-19 06:47:23 +03:00
Upgrade to 0.16.0
This commit is contained in:
parent
a5a71c9191
commit
9d088239ea
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -1112,7 +1112,7 @@ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "xplr"
|
name = "xplr"
|
||||||
version = "0.15.2"
|
version = "0.16.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"ansi-to-tui",
|
"ansi-to-tui",
|
||||||
"anyhow",
|
"anyhow",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "xplr"
|
name = "xplr"
|
||||||
version = "0.15.2" # Update lua.rs
|
version = "0.16.0" # Update lua.rs
|
||||||
authors = ["Arijit Basu <sayanarijit@gmail.com>"]
|
authors = ["Arijit Basu <sayanarijit@gmail.com>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
description = "A hackable, minimal, fast TUI file explorer"
|
description = "A hackable, minimal, fast TUI file explorer"
|
||||||
|
@ -45,6 +45,29 @@ compatibility.
|
|||||||
|
|
||||||
### Instructions
|
### 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]
|
#### [v0.14.7][3] -> [v0.15.2][43]
|
||||||
|
|
||||||
- Deprecated `config` field from `CallLua` argument. Use the globally available
|
- Deprecated `config` field from `CallLua` argument. Use the globally available
|
||||||
@ -60,8 +83,6 @@ compatibility.
|
|||||||
mode.
|
mode.
|
||||||
- Library users please refer to the latest API docs and examples.
|
- 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]
|
#### [v0.13.7][2] -> [v0.14.7][3]
|
||||||
|
|
||||||
- macOS users need to place their config file (`init.lua`) in
|
- 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
|
[41]: https://github.com/sayanarijit/xplr/releases/tag/v0.3.0
|
||||||
[42]: https://github.com/sayanarijit/xplr/releases/tag/v0.14.4
|
[42]: https://github.com/sayanarijit/xplr/releases/tag/v0.14.4
|
||||||
[43]: https://github.com/sayanarijit/xplr/releases/tag/v0.15.2
|
[43]: https://github.com/sayanarijit/xplr/releases/tag/v0.15.2
|
||||||
|
[44]: https://github.com/sayanarijit/xplr/releases/tag/v0.16.0
|
||||||
|
12
src/lua.rs
12
src/lua.rs
@ -141,24 +141,24 @@ mod tests {
|
|||||||
assert!(check_version(VERSION, "foo path").is_ok());
|
assert!(check_version(VERSION, "foo path").is_ok());
|
||||||
|
|
||||||
// Current release if 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
|
// Prev major release is ERR
|
||||||
// - Not yet
|
// - Not yet
|
||||||
|
|
||||||
// Prev minor release is ERR (Change when we get to v1)
|
// 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
|
// 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
|
// 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
|
// 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)
|
// 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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user