mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
.. [no ci]
This commit is contained in:
parent
03bc86f46f
commit
3d6204bf5c
2 changed files with 3 additions and 12 deletions
|
|
@ -57,9 +57,9 @@ impl Ueberzug {
|
||||||
|
|
||||||
async fn send_command(child: &mut Child, cmd: Option<(PathBuf, Rect)>) -> Result<()> {
|
async fn send_command(child: &mut Child, cmd: Option<(PathBuf, Rect)>) -> Result<()> {
|
||||||
let stdin = child.stdin.as_mut().unwrap();
|
let stdin = child.stdin.as_mut().unwrap();
|
||||||
if let Some((path, tmp_rect)) = cmd {
|
if let Some((path, rect)) = cmd {
|
||||||
debug!("ueberzug rect before adjustment: {:?}", tmp_rect);
|
debug!("ueberzug rect before adjustment: {:?}", rect);
|
||||||
let rect = Self::adjust_rect(tmp_rect);
|
let rect = Self::adjust_rect(rect);
|
||||||
debug!("ueberzug rect after adjustment: {:?}", rect);
|
debug!("ueberzug rect after adjustment: {:?}", rect);
|
||||||
|
|
||||||
let s = format!(
|
let s = format!(
|
||||||
|
|
|
||||||
|
|
@ -6,15 +6,6 @@ use yazi_shared::expand_path;
|
||||||
|
|
||||||
use crate::{xdg::Xdg, MERGED_YAZI};
|
use crate::{xdg::Xdg, MERGED_YAZI};
|
||||||
|
|
||||||
#[derive(Debug, Deserialize)]
|
|
||||||
pub struct UeberzugPreview {
|
|
||||||
pub scale_down_factor: f64,
|
|
||||||
pub x_offset: f64,
|
|
||||||
pub y_offset: f64,
|
|
||||||
pub width_offset: f64,
|
|
||||||
pub height_offset: f64,
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct Preview {
|
pub struct Preview {
|
||||||
pub tab_size: u32,
|
pub tab_size: u32,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue