This commit is contained in:
sxyazi 2023-09-24 17:26:47 +08:00
parent 5665096094
commit 3e617bc7d2
No known key found for this signature in database
2 changed files with 2 additions and 5 deletions

View file

@ -13,8 +13,8 @@ keymap = [
{ on = [ "K" ], exec = "arrow -5", desc = "Move cursor up 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-d>" ], exec = "arrow 50%", desc = "Move cursor down 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-b>" ], exec = "arrow -100%", desc = "Move cursor up one page" },
{ on = [ "<C-f>" ], exec = "arrow 100%", desc = "Move cursor down one page" },

View file

@ -6,7 +6,6 @@ pub enum Step {
}
impl Default for Step {
#[inline]
fn default() -> Self { Self::Fixed(0) }
}
@ -23,12 +22,10 @@ impl FromStr for Step {
}
impl From<isize> for Step {
#[inline]
fn from(n: isize) -> Self { Self::Fixed(n) }
}
impl From<usize> for Step {
#[inline]
fn from(n: usize) -> Self { Self::Fixed(n as isize) }
}