feat: drag-resize panes with mouse (#3890)

Co-authored-by: Lingxuan Ye <yelingxuan@xiaomi.com>
Co-authored-by: sxyazi <sxyazi@gmail.com>
This commit is contained in:
WINLAIC 2026-04-22 19:35:19 +08:00 committed by GitHub
parent 4a2e5addcd
commit a2996908de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
25 changed files with 182 additions and 71 deletions

View file

@ -14,7 +14,7 @@ linemode = "none"
show_hidden = false
show_symlink = true
scrolloff = 5
mouse_events = [ "click", "scroll" ]
mouse_events = [ "click", "scroll", "drag" ]
[preview]
wrap = "no"

View file

@ -15,10 +15,6 @@ bitflags! {
}
}
impl MouseEvents {
pub const fn draggable(self) -> bool { self.contains(Self::DRAG) }
}
impl TryFrom<Vec<String>> for MouseEvents {
type Error = anyhow::Error;