Skip to content

Commit

Permalink
Upgrade version
Browse files Browse the repository at this point in the history
  • Loading branch information
sayanarijit committed Jun 6, 2022
1 parent bea0f27 commit bf35435
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 26 deletions.
30 changes: 15 additions & 15 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ path = './benches/criterion.rs'

[package]
name = 'xplr'
version = '0.18.0'
version = '0.19.0'
authors = ['Arijit Basu <hi@arijitbasu.in>']
edition = '2021'
description = 'A hackable, minimal, fast TUI file explorer'
Expand Down Expand Up @@ -55,15 +55,15 @@ version = "0.4.19"
features = ['serde']

[dependencies.indexmap]
version = "1.8.1"
version = "1.8.2"
features = ['serde']

[dependencies.mlua]
version = "0.7.4"
features = ['luajit', 'vendored', 'serialize', 'send']

[dependencies.tui-input]
version = "0.4.0"
version = "0.4.2"
features = ['serde']

[dev-dependencies]
Expand Down
31 changes: 29 additions & 2 deletions docs/en/src/upgrade-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<sub>Like this project so far? **[Please consider contributing][5]**.</sub>

#### [v0.17.6][45] -> [v0.18.0][46]

- Key binding `f` `r` and `f` `R` will now filter using regex.
Expand Down Expand Up @@ -74,8 +102,6 @@ compatibility.
- "BySymlinkCreated"
- "BySymlinkLastModified"

<sub>Like this project so far? **[Please consider contributing][5]**.</sub>

#### [v0.16.4][44] -> [v0.17.6][45]

- Deprecated `app.directory_buffer`, `app.history`, and `app.last_modes` in
Expand Down Expand Up @@ -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
12 changes: 6 additions & 6 deletions src/lua.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}

0 comments on commit bf35435

Please sign in to comment.