chore: bump version to 0.2.0

This commit is contained in:
sxyazi 2024-01-13 21:13:23 +08:00
parent c335b0272b
commit 876419a6c4
No known key found for this signature in database
11 changed files with 34 additions and 32 deletions

View File

@ -7,5 +7,5 @@ cd $SCRIPT_DIR/..
echo "Bumping version: $1"
TOML_FILES="$(git ls-files '*Cargo.toml')"
perl -pi -e "s/^version = .*\$/version = \"$1\"/" $TOML_FILES
perl -pi -e "s/^version .*= .*\$/version = \"$1\"/" $TOML_FILES
perl -pi -e "s/^(yazi-[a-z]+)\\s*=\\s*{.*\$/\\1 = { path = \"..\/\\1\", version = \"$1\" }/" $TOML_FILES

View File

@ -1,6 +1,6 @@
[package]
name = "yazi-adaptor"
version = "0.1.5"
version = "0.2.0"
edition = "2021"
license = "MIT"
authors = [ "sxyazi <sxyazi@gmail.com>" ]
@ -9,8 +9,8 @@ homepage = "https://yazi-rs.github.io"
repository = "https://github.com/sxyazi/yazi"
[dependencies]
yazi-config = { path = "../yazi-config", version = "0.1.5" }
yazi-shared = { path = "../yazi-shared", version = "0.1.5" }
yazi-config = { path = "../yazi-config", version = "0.2.0" }
yazi-shared = { path = "../yazi-shared", version = "0.2.0" }
# External dependencies
anyhow = "^1"

View File

@ -188,6 +188,9 @@ impl Adaptor {
}
}
#[inline]
pub fn shown_load(self) -> Option<Rect> { SHOWN.load_full().map(|r| *r) }
#[inline]
pub(super) fn shown_store(rect: Rect, size: (u32, u32)) {
SHOWN.store(Some(Arc::new(

View File

@ -1,6 +1,6 @@
[package]
name = "yazi-config"
version = "0.1.5"
version = "0.2.0"
edition = "2021"
license = "MIT"
authors = [ "sxyazi <sxyazi@gmail.com>" ]
@ -9,7 +9,7 @@ homepage = "https://yazi-rs.github.io"
repository = "https://github.com/sxyazi/yazi"
[dependencies]
yazi-shared = { path = "../yazi-shared", version = "0.1.5" }
yazi-shared = { path = "../yazi-shared", version = "0.2.0" }
# External dependencies
anyhow = "^1"

View File

@ -1,6 +1,6 @@
[package]
name = "yazi-core"
version = "0.1.5"
version = "0.2.0"
edition = "2021"
license = "MIT"
authors = [ "sxyazi <sxyazi@gmail.com>" ]
@ -9,11 +9,11 @@ homepage = "https://yazi-rs.github.io"
repository = "https://github.com/sxyazi/yazi"
[dependencies]
yazi-adaptor = { path = "../yazi-adaptor", version = "0.1.5" }
yazi-config = { path = "../yazi-config", version = "0.1.5" }
yazi-plugin = { path = "../yazi-plugin", version = "0.1.5" }
yazi-scheduler = { path = "../yazi-scheduler", version = "0.1.5" }
yazi-shared = { path = "../yazi-shared", version = "0.1.5" }
yazi-adaptor = { path = "../yazi-adaptor", version = "0.2.0" }
yazi-config = { path = "../yazi-config", version = "0.2.0" }
yazi-plugin = { path = "../yazi-plugin", version = "0.2.0" }
yazi-scheduler = { path = "../yazi-scheduler", version = "0.2.0" }
yazi-shared = { path = "../yazi-shared", version = "0.2.0" }
# External dependencies
anyhow = "^1"

View File

@ -1,6 +1,6 @@
[package]
name = "yazi-fm"
version = "0.1.5"
version = "0.2.0"
edition = "2021"
license = "MIT"
authors = [ "sxyazi <sxyazi@gmail.com>" ]
@ -9,12 +9,12 @@ homepage = "https://yazi-rs.github.io"
repository = "https://github.com/sxyazi/yazi"
[dependencies]
yazi-adaptor = { path = "../yazi-adaptor", version = "0.1.5" }
yazi-config = { path = "../yazi-config", version = "0.1.5" }
yazi-core = { path = "../yazi-core", version = "0.1.5" }
yazi-plugin = { path = "../yazi-plugin", version = "0.1.5" }
yazi-scheduler = { path = "../yazi-scheduler", version = "0.1.5" }
yazi-shared = { path = "../yazi-shared", version = "0.1.5" }
yazi-adaptor = { path = "../yazi-adaptor", version = "0.2.0" }
yazi-config = { path = "../yazi-config", version = "0.2.0" }
yazi-core = { path = "../yazi-core", version = "0.2.0" }
yazi-plugin = { path = "../yazi-plugin", version = "0.2.0" }
yazi-scheduler = { path = "../yazi-scheduler", version = "0.2.0" }
yazi-shared = { path = "../yazi-shared", version = "0.2.0" }
# External dependencies
ansi-to-tui = "^3"

View File

@ -2,7 +2,6 @@ use std::sync::atomic::Ordering;
use ratatui::{buffer::Buffer, layout::Rect, widgets::Widget};
use yazi_adaptor::ADAPTOR;
use yazi_config::LAYOUT;
use crate::root::COLLISION;
@ -29,7 +28,7 @@ impl Widget for Clear {
fn render(self, area: Rect, buf: &mut Buffer) {
ratatui::widgets::Clear.render(area, buf);
let Some(r) = overlap(&area, &LAYOUT.load().preview) else {
let Some(r) = ADAPTOR.shown_load().and_then(|r| overlap(&area, &r)) else {
return;
};

View File

@ -1,6 +1,6 @@
[package]
name = "yazi-plugin"
version = "0.1.5"
version = "0.2.0"
edition = "2021"
license = "MIT"
authors = [ "sxyazi <sxyazi@gmail.com>" ]
@ -9,9 +9,9 @@ homepage = "https://yazi-rs.github.io"
repository = "https://github.com/sxyazi/yazi"
[dependencies]
yazi-adaptor = { path = "../yazi-adaptor", version = "0.1.5" }
yazi-config = { path = "../yazi-config", version = "0.1.5" }
yazi-shared = { path = "../yazi-shared", version = "0.1.5" }
yazi-adaptor = { path = "../yazi-adaptor", version = "0.2.0" }
yazi-config = { path = "../yazi-config", version = "0.2.0" }
yazi-shared = { path = "../yazi-shared", version = "0.2.0" }
# External dependencies
ansi-to-tui = "^3"

View File

@ -85,7 +85,7 @@ function Folder:markers(area, markers)
x = math.max(0, area.x - 1),
y = y,
w = 1,
h = 1 + math.min(last[2] - last[1], area.h - y),
h = math.min(1 + last[2] - last[1], area.y + area.h - y),
},
ui.Bar.LEFT
)

View File

@ -1,6 +1,6 @@
[package]
name = "yazi-scheduler"
version = "0.1.5"
version = "0.2.0"
edition = "2021"
license = "MIT"
authors = [ "sxyazi <sxyazi@gmail.com>" ]
@ -9,10 +9,10 @@ homepage = "https://yazi-rs.github.io"
repository = "https://github.com/sxyazi/yazi"
[dependencies]
yazi-adaptor = { path = "../yazi-adaptor", version = "0.1.5" }
yazi-config = { path = "../yazi-config", version = "0.1.5" }
yazi-shared = { path = "../yazi-shared", version = "0.1.5" }
yazi-plugin = { path = "../yazi-plugin", version = "0.1.5" }
yazi-adaptor = { path = "../yazi-adaptor", version = "0.2.0" }
yazi-config = { path = "../yazi-config", version = "0.2.0" }
yazi-shared = { path = "../yazi-shared", version = "0.2.0" }
yazi-plugin = { path = "../yazi-plugin", version = "0.2.0" }
# External dependencies
anyhow = "^1"

View File

@ -1,6 +1,6 @@
[package]
name = "yazi-shared"
version = "0.1.5"
version = "0.2.0"
edition = "2021"
license = "MIT"
authors = [ "sxyazi <sxyazi@gmail.com>" ]