mirror of
https://github.com/sxyazi/yazi.git
synced 2024-11-24 09:53:12 +03:00
chore: bump version to 0.2.0
This commit is contained in:
parent
c335b0272b
commit
876419a6c4
@ -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
|
||||
|
@ -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"
|
||||
|
@ -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(
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
)
|
||||
|
@ -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"
|
||||
|
@ -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>" ]
|
||||
|
Loading…
Reference in New Issue
Block a user