Skip to content

Commit

Permalink
Fix rename breaking UI
Browse files Browse the repository at this point in the history
  • Loading branch information
sayanarijit committed May 9, 2021
1 parent 7c5468c commit 92545f6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "xplr"
version = "0.8.0" # Update config.yml, config.rs
version = "0.8.1" # Update config.yml, config.rs
authors = ["Arijit Basu <[email protected]>"]
edition = "2018"
description = "A hackable, minimal, fast TUI file explorer"
Expand Down
4 changes: 3 additions & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1236,6 +1236,7 @@ impl Config {

pub fn is_compatible(&self) -> Result<bool> {
let result = match self.parsed_version()? {
(0, 8, 1) => true,
(0, 8, 0) => true,
(_, _, _) => false,
};
Expand All @@ -1245,7 +1246,8 @@ impl Config {

pub fn upgrade_notification(&self) -> Result<Option<&str>> {
let result = match self.parsed_version()? {
(0, 8, 0) => None,
(0, 8, 1) => None,
(0, 8, 0) => Some("App version updated. Fixed breaking UI after rename"),
(_, _, _) => None,
};

Expand Down
4 changes: 2 additions & 2 deletions src/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: v0.8.0
version: v0.8.1
layouts:
custom: {}
builtin:
Expand Down Expand Up @@ -498,7 +498,7 @@ modes:
- BashExecSilently: |
SRC="${XPLR_FOCUS_PATH:?}"
TARGET="${XPLR_INPUT_BUFFER:?}"
mv -v -- "${SRC:?}" "${TARGET:?}" \
mv -- "${SRC:?}" "${TARGET:?}" \
&& echo ExplorePwd >> "${XPLR_PIPE_MSG_IN:?}" \
&& echo FocusByFileName: "'"$TARGET"'" >> "${XPLR_PIPE_MSG_IN:?}" \
&& echo LogSuccess: $SRC renamed to $TARGET >> "${XPLR_PIPE_MSG_IN:?}"
Expand Down

0 comments on commit 92545f6

Please sign in to comment.