mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
..
This commit is contained in:
parent
5665096094
commit
3e617bc7d2
2 changed files with 2 additions and 5 deletions
|
|
@ -13,8 +13,8 @@ keymap = [
|
||||||
{ on = [ "K" ], exec = "arrow -5", desc = "Move cursor up 5 lines" },
|
{ on = [ "K" ], exec = "arrow -5", desc = "Move cursor up 5 lines" },
|
||||||
{ on = [ "J" ], exec = "arrow 5", desc = "Move cursor down 5 lines" },
|
{ on = [ "J" ], exec = "arrow 5", desc = "Move cursor down 5 lines" },
|
||||||
|
|
||||||
{ on = [ "<C-u>" ], exec = "arrow -50%", desc = "Move cursor up half page" },
|
{ on = [ "<C-u>" ], exec = "arrow -50%", desc = "Move cursor up half page" },
|
||||||
{ on = [ "<C-d>" ], exec = "arrow 50%", desc = "Move cursor down half page" },
|
{ on = [ "<C-d>" ], exec = "arrow 50%", desc = "Move cursor down half page" },
|
||||||
{ on = [ "<C-b>" ], exec = "arrow -100%", desc = "Move cursor up one page" },
|
{ on = [ "<C-b>" ], exec = "arrow -100%", desc = "Move cursor up one page" },
|
||||||
{ on = [ "<C-f>" ], exec = "arrow 100%", desc = "Move cursor down one page" },
|
{ on = [ "<C-f>" ], exec = "arrow 100%", desc = "Move cursor down one page" },
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@ pub enum Step {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for Step {
|
impl Default for Step {
|
||||||
#[inline]
|
|
||||||
fn default() -> Self { Self::Fixed(0) }
|
fn default() -> Self { Self::Fixed(0) }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -23,12 +22,10 @@ impl FromStr for Step {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<isize> for Step {
|
impl From<isize> for Step {
|
||||||
#[inline]
|
|
||||||
fn from(n: isize) -> Self { Self::Fixed(n) }
|
fn from(n: isize) -> Self { Self::Fixed(n) }
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<usize> for Step {
|
impl From<usize> for Step {
|
||||||
#[inline]
|
|
||||||
fn from(n: usize) -> Self { Self::Fixed(n as isize) }
|
fn from(n: usize) -> Self { Self::Fixed(n as isize) }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue