From 8c3a5b14de37aa3bd9c5c9a0aa2645245d03b161 Mon Sep 17 00:00:00 2001 From: Nathan Vegdahl Date: Tue, 3 Aug 2021 06:49:40 -0700 Subject: Add `goto_last_line` command, and bind it to `ge`. Resolves #529. --- helix-term/src/keymap.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'helix-term/src/keymap.rs') diff --git a/helix-term/src/keymap.rs b/helix-term/src/keymap.rs index 5fe730a1..cba3b3d0 100644 --- a/helix-term/src/keymap.rs +++ b/helix-term/src/keymap.rs @@ -359,7 +359,7 @@ impl Default for Keymaps { "G" => goto_line, "g" => { "Goto" "g" => goto_file_start, - "e" => goto_file_end, + "e" => goto_last_line, "h" => goto_line_start, "l" => goto_line_end, "s" => goto_first_nonwhitespace, @@ -617,7 +617,7 @@ fn merge_partial_keys() { // Assumes that `ge` is in default keymap assert_eq!( keymap.root().search(&[key!('g'), key!('e')]).unwrap(), - &KeyTrie::Leaf(Command::goto_file_end), + &KeyTrie::Leaf(Command::goto_last_line), "Old leaves in subnode should be present in merged node" ); -- cgit v1.2.3-70-g09d2