mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
feat(config): add mgr.mouse_double_click_delay setting
This commit is contained in:
parent
3f5cc47a48
commit
1db4e1c9d3
2 changed files with 11 additions and 9 deletions
|
|
@ -11,11 +11,12 @@ sort_reverse = false
|
|||
sort_dir_first = true
|
||||
sort_translit = false
|
||||
sort_fallback = "alphabetical"
|
||||
linemode = "none"
|
||||
show_hidden = false
|
||||
show_symlink = true
|
||||
scrolloff = 5
|
||||
mouse_events = [ "click", "scroll", "drag" ]
|
||||
linemode = "none"
|
||||
show_hidden = false
|
||||
show_symlink = true
|
||||
scrolloff = 5
|
||||
mouse_events = [ "click", "scroll", "drag" ]
|
||||
mouse_double_click_delay = 300
|
||||
|
||||
[preview]
|
||||
wrap = "no"
|
||||
|
|
|
|||
|
|
@ -22,10 +22,11 @@ pub struct Mgr {
|
|||
// Display
|
||||
#[serde(deserialize_with = "deserialize_linemode")]
|
||||
pub linemode: ArcSwap<String>,
|
||||
pub show_hidden: SyncCell<bool>,
|
||||
pub show_symlink: SyncCell<bool>,
|
||||
pub scrolloff: SyncCell<u8>,
|
||||
pub mouse_events: SyncCell<MouseEvents>,
|
||||
pub show_hidden: SyncCell<bool>,
|
||||
pub show_symlink: SyncCell<bool>,
|
||||
pub scrolloff: SyncCell<u8>,
|
||||
pub mouse_events: SyncCell<MouseEvents>,
|
||||
pub mouse_double_click_delay: SyncCell<u16>,
|
||||
}
|
||||
|
||||
fn deserialize_linemode<'de, D>(deserializer: D) -> Result<ArcSwap<String>, D::Error>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue