mirror of
https://github.com/sxyazi/yazi.git
synced 2026-05-13 08:16:40 +00:00
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:
parent
4a2e5addcd
commit
a2996908de
25 changed files with 182 additions and 71 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue