Skip to content

Commit e6232b6

Browse files
committed
feat: add more movement on visual mode
1 parent 9b7a11d commit e6232b6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/buffer/maps.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,14 @@ pub fn get_default_visual_maps() -> ActionMap {
8686
map.insert("e", buffer_action!(move_next_word_end));
8787
map.insert("b", buffer_action!(move_previous_word));
8888

89+
map.insert("<c-y>", buffer_action!(scroll_up));
90+
map.insert("<c-u>", buffer_action!(scroll_up_half_page));
91+
map.insert("<c-e>", buffer_action!(scroll_down));
92+
map.insert("<c-d>", buffer_action!(scroll_down_half_page));
93+
94+
map.insert("n", buffer_action!(move_to_next_find));
95+
map.insert("N", buffer_action!(move_to_previous_find));
96+
8997
map.insert("o", buffer_action!(reverse_selection));
9098

9199
map.insert("y", buffer_action!(copy_selection));

0 commit comments

Comments
 (0)