2020-10-08 14:58:57 +03:00
|
|
|
// Note:
|
|
|
|
// If the default key layout is lower case,
|
|
|
|
// and you want to use `Shift + q` to trigger the exit event,
|
2024-02-12 13:53:22 +03:00
|
|
|
// the setting should like this `exit: Some(( code: Char('Q'), modifiers: "SHIFT")),`
|
2024-02-21 17:20:05 +03:00
|
|
|
// The Char should be upper case, and the modifier should be set to "SHIFT".
|
2021-11-21 23:53:49 +03:00
|
|
|
//
|
|
|
|
// Note:
|
|
|
|
// find `KeysList` type in src/keys/key_list.rs for all possible keys.
|
|
|
|
// every key not overwritten via the config file will use the default specified there
|
2020-08-26 19:23:53 +03:00
|
|
|
(
|
2024-02-12 13:53:22 +03:00
|
|
|
open_help: Some(( code: F(1), modifiers: "")),
|
2021-08-17 15:21:24 +03:00
|
|
|
|
2024-02-12 13:53:22 +03:00
|
|
|
move_left: Some(( code: Char('h'), modifiers: "")),
|
|
|
|
move_right: Some(( code: Char('l'), modifiers: "")),
|
|
|
|
move_up: Some(( code: Char('k'), modifiers: "")),
|
|
|
|
move_down: Some(( code: Char('j'), modifiers: "")),
|
2023-02-11 13:06:08 +03:00
|
|
|
|
2024-02-12 13:53:22 +03:00
|
|
|
popup_up: Some(( code: Char('p'), modifiers: "CONTROL")),
|
|
|
|
popup_down: Some(( code: Char('n'), modifiers: "CONTROL")),
|
|
|
|
page_up: Some(( code: Char('b'), modifiers: "CONTROL")),
|
|
|
|
page_down: Some(( code: Char('f'), modifiers: "CONTROL")),
|
|
|
|
home: Some(( code: Char('g'), modifiers: "")),
|
|
|
|
end: Some(( code: Char('G'), modifiers: "SHIFT")),
|
|
|
|
shift_up: Some(( code: Char('K'), modifiers: "SHIFT")),
|
|
|
|
shift_down: Some(( code: Char('J'), modifiers: "SHIFT")),
|
2021-05-09 23:53:12 +03:00
|
|
|
|
2024-02-12 13:53:22 +03:00
|
|
|
edit_file: Some(( code: Char('I'), modifiers: "SHIFT")),
|
2021-08-21 16:49:39 +03:00
|
|
|
|
2024-02-12 13:53:22 +03:00
|
|
|
status_reset_item: Some(( code: Char('U'), modifiers: "SHIFT")),
|
2021-05-13 15:11:51 +03:00
|
|
|
|
2024-02-12 13:53:22 +03:00
|
|
|
diff_reset_lines: Some(( code: Char('u'), modifiers: "")),
|
|
|
|
diff_stage_lines: Some(( code: Char('s'), modifiers: "")),
|
2020-12-19 19:00:42 +03:00
|
|
|
|
2024-02-12 13:53:22 +03:00
|
|
|
stashing_save: Some(( code: Char('w'), modifiers: "")),
|
|
|
|
stashing_toggle_index: Some(( code: Char('m'), modifiers: "")),
|
2021-05-18 01:21:05 +03:00
|
|
|
|
2024-02-12 13:53:22 +03:00
|
|
|
stash_open: Some(( code: Char('l'), modifiers: "")),
|
2021-10-10 03:58:21 +03:00
|
|
|
|
2024-02-12 13:53:22 +03:00
|
|
|
abort_merge: Some(( code: Char('M'), modifiers: "SHIFT")),
|
2020-08-26 19:23:53 +03:00
|
|
|
)
|