Fix global help menu not displaying sort & filter

pull/93/head v0.5.1
Arijit Basu 3 years ago committed by Arijit Basu
parent f8fb6913c9
commit 87cd6ff015

2
Cargo.lock generated

@ -1630,7 +1630,7 @@ dependencies = [
[[package]] [[package]]
name = "xplr" name = "xplr"
version = "0.5.0" version = "0.5.1"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"chrono", "chrono",

@ -1,6 +1,6 @@
[package] [package]
name = "xplr" name = "xplr"
version = "0.5.0" # Update config.yml, config.rs and default.nix version = "0.5.1" # Update config.yml, config.rs and default.nix
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"

@ -2078,6 +2078,10 @@ impl App {
), ),
(builtin.rename.name.clone(), builtin.rename), (builtin.rename.name.clone(), builtin.rename),
(builtin.delete.name.clone(), builtin.delete), (builtin.delete.name.clone(), builtin.delete),
(builtin.sort.name.clone(), builtin.sort),
(builtin.filter.name.clone(), builtin.filter),
(builtin.relative_path_does_contain.name.clone(), builtin.relative_path_does_contain),
(builtin.relative_path_does_not_contain.name.clone(), builtin.relative_path_does_not_contain),
] ]
.iter() .iter()
.chain(custom.into_iter().collect::<Vec<(String, Mode)>>().iter()) .chain(custom.into_iter().collect::<Vec<(String, Mode)>>().iter())

@ -665,6 +665,7 @@ impl Config {
pub fn is_compatible(&self) -> Result<bool> { pub fn is_compatible(&self) -> Result<bool> {
let result = match self.parsed_version()? { let result = match self.parsed_version()? {
(0, 5, 1) => true,
(0, 5, 0) => true, (0, 5, 0) => true,
(_, _, _) => false, (_, _, _) => false,
}; };
@ -673,12 +674,11 @@ impl Config {
} }
pub fn upgrade_notification(&self) -> Result<Option<&str>> { pub fn upgrade_notification(&self) -> Result<Option<&str>> {
Ok(None) let result = match self.parsed_version()? {
/* let result = match self.parsed_version()? { (0, 5, 1) => None,
(0, 5, 0) => None, (_, _, _) => Some("App version updated. New: added sort and filter support and some hacks: https://github.com/sayanarijit/xplr/wiki/Hacks"),
(_, _, _) => Some("App version updated. New: added sorting support and some hacks: https://github.com/sayanarijit/xplr/wiki/Hacks"),
}; };
Ok(result) */ Ok(result)
} }
} }

@ -1,4 +1,4 @@
version: v0.5.0 version: v0.5.1
general: general:
show_hidden: false show_hidden: false
read_only: false read_only: false

Loading…
Cancel
Save