2020-08-26 19:23:53 +03:00
|
|
|
// bit for modifiers
|
|
|
|
// bits: 0 None
|
|
|
|
// bits: 1 SHIFT
|
|
|
|
// bits: 2 CONTROL
|
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,
|
|
|
|
// the setting should like this `exit: ( code: Char('Q'), modifiers: ( bits: 1,),),`
|
|
|
|
// The Char should be upper case, and the shift modified bit should be set to 1.
|
2020-08-26 19:23:53 +03:00
|
|
|
(
|
|
|
|
tab_status: ( code: Char('1'), modifiers: ( bits: 0,),),
|
|
|
|
tab_log: ( code: Char('2'), modifiers: ( bits: 0,),),
|
2021-05-28 01:15:02 +03:00
|
|
|
tab_files: ( code: Char('3'), modifiers: ( bits: 0,),),
|
|
|
|
tab_stashing: ( code: Char('4'), modifiers: ( bits: 0,),),
|
|
|
|
tab_stashes: ( code: Char('5'), modifiers: ( bits: 0,),),
|
2020-08-26 19:23:53 +03:00
|
|
|
|
|
|
|
tab_toggle: ( code: Tab, modifiers: ( bits: 0,),),
|
2020-11-13 16:58:08 +03:00
|
|
|
tab_toggle_reverse: ( code: BackTab, modifiers: ( bits: 1,),),
|
2021-03-21 20:37:53 +03:00
|
|
|
toggle_workarea: ( code: Char('w'), modifiers: (bits: 0,),),
|
2020-08-26 19:23:53 +03:00
|
|
|
|
|
|
|
focus_right: ( code: Char('l'), modifiers: ( bits: 0,),),
|
|
|
|
focus_left: ( code: Char('h'), modifiers: ( bits: 0,),),
|
|
|
|
focus_above: ( code: Char('k'), modifiers: ( bits: 0,),),
|
|
|
|
focus_below: ( code: Char('j'), modifiers: ( bits: 0,),),
|
|
|
|
|
2021-05-23 12:35:49 +03:00
|
|
|
open_help: ( code: F(1), modifiers: ( bits: 0,),),
|
2021-08-19 03:19:36 +03:00
|
|
|
open_options: ( code: Char('o'), modifiers: ( bits: 0,),),
|
2021-05-23 12:35:49 +03:00
|
|
|
|
2021-07-15 17:34:00 +03:00
|
|
|
exit: ( code: Char('c'), modifiers: ( bits: 2,),),
|
|
|
|
quit: ( code: Char('q'), modifiers: ( bits: 0,),),
|
2020-08-26 19:23:53 +03:00
|
|
|
exit_popup: ( code: Esc, modifiers: ( bits: 0,),),
|
|
|
|
|
|
|
|
open_commit: ( code: Char('c'), modifiers: ( bits: 0,),),
|
2021-02-25 16:59:45 +03:00
|
|
|
// Note: the shift modifier does not work for open_commit_editor
|
2021-05-23 12:35:49 +03:00
|
|
|
// Also just plain text characters will not work because the commit
|
|
|
|
// msg editor will interpret them as text input
|
2021-02-25 16:59:45 +03:00
|
|
|
open_commit_editor: ( code: Char('e'), modifiers: ( bits: 2,),),
|
2021-06-07 17:46:45 +03:00
|
|
|
undo_commit: ( code: Char('U'), modifiers: ( bits: 1,),),
|
2020-08-26 19:23:53 +03:00
|
|
|
|
|
|
|
move_left: ( code: Char('h'), modifiers: ( bits: 0,),),
|
|
|
|
move_right: ( code: Char('l'), modifiers: ( bits: 0,),),
|
|
|
|
home: ( code: Home, modifiers: ( bits: 0,),),
|
|
|
|
end: ( code: End, modifiers: ( bits: 0,),),
|
|
|
|
move_up: ( code: Char('k'), modifiers: ( bits: 0,),),
|
|
|
|
move_down: ( code: Char('j'), modifiers: ( bits: 0,),),
|
2020-10-08 14:58:57 +03:00
|
|
|
page_up: ( code: Char('b'), modifiers: ( bits: 2,),),
|
|
|
|
page_down: ( code: Char('f'), modifiers: ( bits: 2,),),
|
2021-05-21 15:52:05 +03:00
|
|
|
tree_collapse_recursive: ( code: Left, modifiers: ( bits: 1,),),
|
|
|
|
tree_expand_recursive: ( code: Right, modifiers: ( bits: 1,),),
|
2020-08-26 19:23:53 +03:00
|
|
|
|
2020-10-08 14:58:57 +03:00
|
|
|
shift_up: ( code: Char('K'), modifiers: ( bits: 1,),),
|
|
|
|
shift_down: ( code: Char('J'), modifiers: ( bits: 1,),),
|
2020-08-26 19:23:53 +03:00
|
|
|
|
|
|
|
enter: ( code: Enter, modifiers: ( bits: 0,),),
|
2021-04-24 10:08:25 +03:00
|
|
|
blame: ( code: Char('B'), modifiers: ( bits: 1,),),
|
2020-08-26 19:23:53 +03:00
|
|
|
|
2020-10-08 14:58:57 +03:00
|
|
|
edit_file: ( code: Char('I'), modifiers: ( bits: 1,),),
|
2020-08-26 19:23:53 +03:00
|
|
|
|
|
|
|
status_stage_all: ( code: Char('a'), modifiers: ( bits: 0,),),
|
2020-10-08 14:58:57 +03:00
|
|
|
status_reset_item: ( code: Char('U'), modifiers: ( bits: 1,),),
|
2020-08-26 19:23:53 +03:00
|
|
|
status_ignore_file: ( code: Char('i'), modifiers: ( bits: 0,),),
|
2021-05-13 15:11:51 +03:00
|
|
|
|
2021-03-13 22:36:48 +03:00
|
|
|
diff_reset_lines: ( code: Char('u'), modifiers: ( bits: 0,),),
|
2021-03-11 00:27:02 +03:00
|
|
|
diff_stage_lines: ( code: Char('s'), modifiers: ( bits: 0,),),
|
2020-08-26 19:23:53 +03:00
|
|
|
|
|
|
|
stashing_save: ( code: Char('w'), modifiers: ( bits: 0,),),
|
|
|
|
stashing_toggle_untracked: ( code: Char('u'), modifiers: ( bits: 0,),),
|
|
|
|
stashing_toggle_index: ( code: Char('m'), modifiers: ( bits: 0,),),
|
|
|
|
|
2021-04-10 01:33:04 +03:00
|
|
|
stash_apply: ( code: Char('a'), modifiers: ( bits: 0,),),
|
2020-08-26 19:23:53 +03:00
|
|
|
stash_open: ( code: Char('l'), modifiers: ( bits: 0,),),
|
2020-10-08 14:58:57 +03:00
|
|
|
stash_drop: ( code: Char('D'), modifiers: ( bits: 1,),),
|
2020-08-26 19:23:53 +03:00
|
|
|
|
|
|
|
cmd_bar_toggle: ( code: Char('.'), modifiers: ( bits: 0,),),
|
2021-08-17 15:21:24 +03:00
|
|
|
|
2020-08-26 19:23:53 +03:00
|
|
|
log_tag_commit: ( code: Char('t'), modifiers: ( bits: 0,),),
|
2021-08-17 15:21:24 +03:00
|
|
|
log_mark_commit: ( code: Char(' '), modifiers: ( bits: 0,),),
|
|
|
|
|
2021-03-25 00:44:18 +03:00
|
|
|
commit_amend: ( code: Char('a'), modifiers: ( bits: 2,),),
|
2020-08-26 19:23:53 +03:00
|
|
|
copy: ( code: Char('y'), modifiers: ( bits: 0,),),
|
2020-10-10 02:27:13 +03:00
|
|
|
create_branch: ( code: Char('c'), modifiers: ( bits: 0,),),
|
2020-10-17 10:00:34 +03:00
|
|
|
rename_branch: ( code: Char('r'), modifiers: ( bits: 0,),),
|
2020-10-10 02:27:13 +03:00
|
|
|
select_branch: ( code: Char('b'), modifiers: ( bits: 0,),),
|
2020-10-11 15:30:44 +03:00
|
|
|
delete_branch: ( code: Char('D'), modifiers: ( bits: 1,),),
|
2021-05-09 23:53:12 +03:00
|
|
|
merge_branch: ( code: Char('m'), modifiers: ( bits: 0,),),
|
2021-08-26 21:31:37 +03:00
|
|
|
rebase_branch: ( code: Char('R'), modifiers: ( bits: 1,),),
|
2021-05-09 23:53:12 +03:00
|
|
|
abort_merge: ( code: Char('M'), modifiers: ( bits: 1,),),
|
|
|
|
|
2021-08-21 16:49:39 +03:00
|
|
|
compare_commits: ( code: Char('C'), modifiers: ( bits: 1,),),
|
|
|
|
|
2021-05-13 15:11:51 +03:00
|
|
|
tags: ( code: Char('T'), modifiers: ( bits: 1,),),
|
|
|
|
delete_tag: ( code: Char('D'), modifiers: ( bits: 1,),),
|
|
|
|
select_tag: ( code: Enter, modifiers: ( bits: 0,),),
|
|
|
|
|
2020-09-02 03:08:41 +03:00
|
|
|
push: ( code: Char('p'), modifiers: ( bits: 0,),),
|
2021-02-23 13:02:16 +03:00
|
|
|
force_push: ( code: Char('P'), modifiers: ( bits: 1,),),
|
2021-03-01 01:42:01 +03:00
|
|
|
pull: ( code: Char('f'), modifiers: ( bits: 0,),),
|
2020-12-19 19:00:42 +03:00
|
|
|
|
2021-05-18 01:21:05 +03:00
|
|
|
open_file_tree: ( code: Char('F'), modifiers: ( bits: 1,),),
|
2021-09-04 11:50:03 +03:00
|
|
|
file_find: ( code: Char('f'), modifiers: ( bits: 0,),),
|
2021-05-18 01:21:05 +03:00
|
|
|
|
2021-10-10 03:58:21 +03:00
|
|
|
stage_unstage_item: ( code: Enter, modifiers: ( bits: 0,),),
|
|
|
|
|
2020-12-19 19:00:42 +03:00
|
|
|
//removed in 0.11
|
|
|
|
//tab_toggle_reverse_windows: ( code: BackTab, modifiers: ( bits: 1,),),
|
2020-08-26 19:23:53 +03:00
|
|
|
)
|