From 2766539622a3aecabd1d6ad9246dcbdcb5d31a41 Mon Sep 17 00:00:00 2001 From: emma Date: Sat, 15 Apr 2023 17:34:53 -0400 Subject: [PATCH 1/2] added $, ^, and 0 keybinds --- src/keybinds.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/keybinds.rs b/src/keybinds.rs index c9f993b..9aaf461 100644 --- a/src/keybinds.rs +++ b/src/keybinds.rs @@ -1,5 +1,6 @@ /* * Copyright (c) 2023 Marceline Cramer + * Copyright (c) 2023 Emma Tebibyte * SPDX-License-Identifier: AGPL-3.0-or-later * * This program is free software: you can redistribute it and/or modify it under @@ -59,7 +60,10 @@ impl Default for Keybinds { ]; let normalish_keys = [ - (Char(':'), command_mode as Action), + (Char(':'), command_mode as Action) + (Char('$'), goto_line_end), + (Char('0'), goto_line_start), + (Char('^'), goto_first_nonwhitespace) (Char('h'), move_char_left), (Char('j'), move_line_down), (Char('k'), move_line_up), From ece0976813219edbca6c4c38acf1d95499fb3e33 Mon Sep 17 00:00:00 2001 From: emma Date: Sat, 15 Apr 2023 17:38:12 -0400 Subject: [PATCH 2/2] fixed minor issue --- src/keybinds.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/keybinds.rs b/src/keybinds.rs index 9aaf461..074c88a 100644 --- a/src/keybinds.rs +++ b/src/keybinds.rs @@ -60,10 +60,10 @@ impl Default for Keybinds { ]; let normalish_keys = [ - (Char(':'), command_mode as Action) + (Char(':'), command_mode as Action), (Char('$'), goto_line_end), (Char('0'), goto_line_start), - (Char('^'), goto_first_nonwhitespace) + (Char('^'), goto_first_nonwhitespace), (Char('h'), move_char_left), (Char('j'), move_line_down), (Char('k'), move_line_up),