feat(config): add mgr.mouse_double_click_delay setting

This commit is contained in:
emrebener 2026-05-22 05:31:02 +01:00
parent 3f5cc47a48
commit 1db4e1c9d3
2 changed files with 11 additions and 9 deletions

View file

@ -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"

View file

@ -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>