mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
word wrap in preview
This commit is contained in:
parent
58ba459b63
commit
935c83983d
2 changed files with 4 additions and 0 deletions
|
|
@ -18,6 +18,7 @@ title_format = "Yazi: {cwd}"
|
|||
|
||||
[preview]
|
||||
tab_size = 2
|
||||
word_wrap = false
|
||||
max_width = 600
|
||||
max_height = 900
|
||||
cache_dir = ""
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ use crate::Xdg;
|
|||
#[derive(Debug, Serialize)]
|
||||
pub struct Preview {
|
||||
pub tab_size: u8,
|
||||
pub word_wrap: bool,
|
||||
pub max_width: u32,
|
||||
pub max_height: u32,
|
||||
|
||||
|
|
@ -59,6 +60,7 @@ impl FromStr for Preview {
|
|||
#[derive(Deserialize, Validate)]
|
||||
struct Shadow {
|
||||
tab_size: u8,
|
||||
word_wrap: bool,
|
||||
max_width: u32,
|
||||
max_height: u32,
|
||||
|
||||
|
|
@ -85,6 +87,7 @@ impl FromStr for Preview {
|
|||
|
||||
Ok(Preview {
|
||||
tab_size: preview.tab_size,
|
||||
word_wrap: preview.word_wrap,
|
||||
max_width: preview.max_width,
|
||||
max_height: preview.max_height,
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue