mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
chore: bump version to 0.2.0
This commit is contained in:
parent
c335b0272b
commit
876419a6c4
11 changed files with 34 additions and 32 deletions
|
|
@ -7,5 +7,5 @@ cd $SCRIPT_DIR/..
|
||||||
echo "Bumping version: $1"
|
echo "Bumping version: $1"
|
||||||
|
|
||||||
TOML_FILES="$(git ls-files '*Cargo.toml')"
|
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
|
perl -pi -e "s/^(yazi-[a-z]+)\\s*=\\s*{.*\$/\\1 = { path = \"..\/\\1\", version = \"$1\" }/" $TOML_FILES
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "yazi-adaptor"
|
name = "yazi-adaptor"
|
||||||
version = "0.1.5"
|
version = "0.2.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
authors = [ "sxyazi <sxyazi@gmail.com>" ]
|
authors = [ "sxyazi <sxyazi@gmail.com>" ]
|
||||||
|
|
@ -9,8 +9,8 @@ homepage = "https://yazi-rs.github.io"
|
||||||
repository = "https://github.com/sxyazi/yazi"
|
repository = "https://github.com/sxyazi/yazi"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
yazi-config = { path = "../yazi-config", version = "0.1.5" }
|
yazi-config = { path = "../yazi-config", version = "0.2.0" }
|
||||||
yazi-shared = { path = "../yazi-shared", version = "0.1.5" }
|
yazi-shared = { path = "../yazi-shared", version = "0.2.0" }
|
||||||
|
|
||||||
# External dependencies
|
# External dependencies
|
||||||
anyhow = "^1"
|
anyhow = "^1"
|
||||||
|
|
|
||||||
|
|
@ -188,6 +188,9 @@ impl Adaptor {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
|
pub fn shown_load(self) -> Option<Rect> { SHOWN.load_full().map(|r| *r) }
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub(super) fn shown_store(rect: Rect, size: (u32, u32)) {
|
pub(super) fn shown_store(rect: Rect, size: (u32, u32)) {
|
||||||
SHOWN.store(Some(Arc::new(
|
SHOWN.store(Some(Arc::new(
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "yazi-config"
|
name = "yazi-config"
|
||||||
version = "0.1.5"
|
version = "0.2.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
authors = [ "sxyazi <sxyazi@gmail.com>" ]
|
authors = [ "sxyazi <sxyazi@gmail.com>" ]
|
||||||
|
|
@ -9,7 +9,7 @@ homepage = "https://yazi-rs.github.io"
|
||||||
repository = "https://github.com/sxyazi/yazi"
|
repository = "https://github.com/sxyazi/yazi"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
yazi-shared = { path = "../yazi-shared", version = "0.1.5" }
|
yazi-shared = { path = "../yazi-shared", version = "0.2.0" }
|
||||||
|
|
||||||
# External dependencies
|
# External dependencies
|
||||||
anyhow = "^1"
|
anyhow = "^1"
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "yazi-core"
|
name = "yazi-core"
|
||||||
version = "0.1.5"
|
version = "0.2.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
authors = [ "sxyazi <sxyazi@gmail.com>" ]
|
authors = [ "sxyazi <sxyazi@gmail.com>" ]
|
||||||
|
|
@ -9,11 +9,11 @@ homepage = "https://yazi-rs.github.io"
|
||||||
repository = "https://github.com/sxyazi/yazi"
|
repository = "https://github.com/sxyazi/yazi"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
yazi-adaptor = { path = "../yazi-adaptor", version = "0.1.5" }
|
yazi-adaptor = { path = "../yazi-adaptor", version = "0.2.0" }
|
||||||
yazi-config = { path = "../yazi-config", version = "0.1.5" }
|
yazi-config = { path = "../yazi-config", version = "0.2.0" }
|
||||||
yazi-plugin = { path = "../yazi-plugin", version = "0.1.5" }
|
yazi-plugin = { path = "../yazi-plugin", version = "0.2.0" }
|
||||||
yazi-scheduler = { path = "../yazi-scheduler", version = "0.1.5" }
|
yazi-scheduler = { path = "../yazi-scheduler", version = "0.2.0" }
|
||||||
yazi-shared = { path = "../yazi-shared", version = "0.1.5" }
|
yazi-shared = { path = "../yazi-shared", version = "0.2.0" }
|
||||||
|
|
||||||
# External dependencies
|
# External dependencies
|
||||||
anyhow = "^1"
|
anyhow = "^1"
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "yazi-fm"
|
name = "yazi-fm"
|
||||||
version = "0.1.5"
|
version = "0.2.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
authors = [ "sxyazi <sxyazi@gmail.com>" ]
|
authors = [ "sxyazi <sxyazi@gmail.com>" ]
|
||||||
|
|
@ -9,12 +9,12 @@ homepage = "https://yazi-rs.github.io"
|
||||||
repository = "https://github.com/sxyazi/yazi"
|
repository = "https://github.com/sxyazi/yazi"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
yazi-adaptor = { path = "../yazi-adaptor", version = "0.1.5" }
|
yazi-adaptor = { path = "../yazi-adaptor", version = "0.2.0" }
|
||||||
yazi-config = { path = "../yazi-config", version = "0.1.5" }
|
yazi-config = { path = "../yazi-config", version = "0.2.0" }
|
||||||
yazi-core = { path = "../yazi-core", version = "0.1.5" }
|
yazi-core = { path = "../yazi-core", version = "0.2.0" }
|
||||||
yazi-plugin = { path = "../yazi-plugin", version = "0.1.5" }
|
yazi-plugin = { path = "../yazi-plugin", version = "0.2.0" }
|
||||||
yazi-scheduler = { path = "../yazi-scheduler", version = "0.1.5" }
|
yazi-scheduler = { path = "../yazi-scheduler", version = "0.2.0" }
|
||||||
yazi-shared = { path = "../yazi-shared", version = "0.1.5" }
|
yazi-shared = { path = "../yazi-shared", version = "0.2.0" }
|
||||||
|
|
||||||
# External dependencies
|
# External dependencies
|
||||||
ansi-to-tui = "^3"
|
ansi-to-tui = "^3"
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@ use std::sync::atomic::Ordering;
|
||||||
|
|
||||||
use ratatui::{buffer::Buffer, layout::Rect, widgets::Widget};
|
use ratatui::{buffer::Buffer, layout::Rect, widgets::Widget};
|
||||||
use yazi_adaptor::ADAPTOR;
|
use yazi_adaptor::ADAPTOR;
|
||||||
use yazi_config::LAYOUT;
|
|
||||||
|
|
||||||
use crate::root::COLLISION;
|
use crate::root::COLLISION;
|
||||||
|
|
||||||
|
|
@ -29,7 +28,7 @@ impl Widget for Clear {
|
||||||
fn render(self, area: Rect, buf: &mut Buffer) {
|
fn render(self, area: Rect, buf: &mut Buffer) {
|
||||||
ratatui::widgets::Clear.render(area, buf);
|
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;
|
return;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "yazi-plugin"
|
name = "yazi-plugin"
|
||||||
version = "0.1.5"
|
version = "0.2.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
authors = [ "sxyazi <sxyazi@gmail.com>" ]
|
authors = [ "sxyazi <sxyazi@gmail.com>" ]
|
||||||
|
|
@ -9,9 +9,9 @@ homepage = "https://yazi-rs.github.io"
|
||||||
repository = "https://github.com/sxyazi/yazi"
|
repository = "https://github.com/sxyazi/yazi"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
yazi-adaptor = { path = "../yazi-adaptor", version = "0.1.5" }
|
yazi-adaptor = { path = "../yazi-adaptor", version = "0.2.0" }
|
||||||
yazi-config = { path = "../yazi-config", version = "0.1.5" }
|
yazi-config = { path = "../yazi-config", version = "0.2.0" }
|
||||||
yazi-shared = { path = "../yazi-shared", version = "0.1.5" }
|
yazi-shared = { path = "../yazi-shared", version = "0.2.0" }
|
||||||
|
|
||||||
# External dependencies
|
# External dependencies
|
||||||
ansi-to-tui = "^3"
|
ansi-to-tui = "^3"
|
||||||
|
|
|
||||||
|
|
@ -85,7 +85,7 @@ function Folder:markers(area, markers)
|
||||||
x = math.max(0, area.x - 1),
|
x = math.max(0, area.x - 1),
|
||||||
y = y,
|
y = y,
|
||||||
w = 1,
|
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
|
ui.Bar.LEFT
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "yazi-scheduler"
|
name = "yazi-scheduler"
|
||||||
version = "0.1.5"
|
version = "0.2.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
authors = [ "sxyazi <sxyazi@gmail.com>" ]
|
authors = [ "sxyazi <sxyazi@gmail.com>" ]
|
||||||
|
|
@ -9,10 +9,10 @@ homepage = "https://yazi-rs.github.io"
|
||||||
repository = "https://github.com/sxyazi/yazi"
|
repository = "https://github.com/sxyazi/yazi"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
yazi-adaptor = { path = "../yazi-adaptor", version = "0.1.5" }
|
yazi-adaptor = { path = "../yazi-adaptor", version = "0.2.0" }
|
||||||
yazi-config = { path = "../yazi-config", version = "0.1.5" }
|
yazi-config = { path = "../yazi-config", version = "0.2.0" }
|
||||||
yazi-shared = { path = "../yazi-shared", version = "0.1.5" }
|
yazi-shared = { path = "../yazi-shared", version = "0.2.0" }
|
||||||
yazi-plugin = { path = "../yazi-plugin", version = "0.1.5" }
|
yazi-plugin = { path = "../yazi-plugin", version = "0.2.0" }
|
||||||
|
|
||||||
# External dependencies
|
# External dependencies
|
||||||
anyhow = "^1"
|
anyhow = "^1"
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "yazi-shared"
|
name = "yazi-shared"
|
||||||
version = "0.1.5"
|
version = "0.2.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
authors = [ "sxyazi <sxyazi@gmail.com>" ]
|
authors = [ "sxyazi <sxyazi@gmail.com>" ]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue