Merge pull request 'New keybinds `$`, `0`, and `^`' (#15) from emma/breed:keybinds into main

Reviewed-on: #15
This commit is contained in:
mars 2023-04-20 03:47:26 +00:00
commit 6f643b1750
1 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,6 @@
/*
* Copyright (c) 2023 Marceline Cramer
* Copyright (c) 2023 Emma Tebibyte <emma@tebibyte.media>
* SPDX-License-Identifier: AGPL-3.0-or-later
*
* This program is free software: you can redistribute it and/or modify it under
@ -60,6 +61,9 @@ impl Default for Keybinds {
let normalish_keys = [
(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),