-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Organize the code related to the keybind functionality (#33)
* Fix Config to private * Remove unnecessary pub * Remove unnecessary if * Remove unnecessary mut * Add test * Stabilize the help display order * Add test * Fix key event string * Organize the order of UserEvent
- Loading branch information
1 parent
db1db65
commit fd9240b
Showing
10 changed files
with
237 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,32 @@ | ||
force_quit = ["ctrl-c"] | ||
quit = ["q"] | ||
help_toggle = ["?"] | ||
# close widget or cancel progress but not quit app | ||
close_or_cancel = ["esc"] | ||
|
||
navigate_up = ["k", "up"] | ||
navigate_down = ["j", "down"] | ||
navigate_right = ["l", "right"] | ||
navigate_left = ["h", "left"] | ||
|
||
# close widget or cancel progress but not quit app | ||
close_or_cancel = ["esc"] | ||
help_toggle = ["?"] | ||
go_to_top = ["g"] | ||
go_to_bottom = ["shift-G"] | ||
go_to_next = ["n"] | ||
go_to_previous = ["shift-N"] | ||
go_to_bottom = ["shift-g"] | ||
scroll_down = ["ctrl-e"] | ||
scroll_up = ["ctrl-y"] | ||
page_up = ["ctrl-b"] | ||
page_down = ["ctrl-f"] | ||
half_page_up = ["ctrl-u"] | ||
half_page_down = ["ctrl-d"] | ||
select_top = ["shift-H"] | ||
select_middle = ["shift-M"] | ||
select_bottom = ["shift-L"] | ||
select_top = ["shift-h"] | ||
select_middle = ["shift-m"] | ||
select_bottom = ["shift-l"] | ||
|
||
go_to_next = ["n"] | ||
go_to_previous = ["shift-n"] | ||
confirm = ["enter"] | ||
ref_list_toggle = ["tab"] | ||
search = ["/"] | ||
|
||
# copy part of information, ex: copy the short commit hash not all | ||
short_copy = ["c"] | ||
full_copy = ["shift-C"] | ||
|
||
ref_list_toggle = ["tab"] | ||
full_copy = ["shift-c"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.