diff --git a/yazi-config/preset/yazi-default.toml b/yazi-config/preset/yazi-default.toml index 1fc65c7f..ee99b608 100644 --- a/yazi-config/preset/yazi-default.toml +++ b/yazi-config/preset/yazi-default.toml @@ -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" diff --git a/yazi-config/src/mgr/mgr.rs b/yazi-config/src/mgr/mgr.rs index 8db1e4f6..91eab3b4 100644 --- a/yazi-config/src/mgr/mgr.rs +++ b/yazi-config/src/mgr/mgr.rs @@ -22,10 +22,11 @@ pub struct Mgr { // Display #[serde(deserialize_with = "deserialize_linemode")] pub linemode: ArcSwap, - pub show_hidden: SyncCell, - pub show_symlink: SyncCell, - pub scrolloff: SyncCell, - pub mouse_events: SyncCell, + pub show_hidden: SyncCell, + pub show_symlink: SyncCell, + pub scrolloff: SyncCell, + pub mouse_events: SyncCell, + pub mouse_double_click_delay: SyncCell, } fn deserialize_linemode<'de, D>(deserializer: D) -> Result, D::Error>