1 from qtpy
.QtGui
import QKeySequence
2 from qtpy
.QtCore
import Qt
6 return QKeySequence(*seq
)
10 STAGE_MODIFIED
= hotkey(Qt
.ALT | Qt
.Key_A
)
11 WORD_LEFT
= hotkey(Qt
.Key_B
)
12 BLAME
= hotkey(Qt
.CTRL | Qt
.SHIFT | Qt
.Key_B
)
13 BRANCH
= hotkey(Qt
.CTRL | Qt
.Key_B
)
14 CHECKOUT
= hotkey(Qt
.ALT | Qt
.Key_B
)
15 CHERRY_PICK
= hotkey(Qt
.CTRL | Qt
.SHIFT | Qt
.Key_C
)
16 COPY_DIFF
= hotkey(Qt
.ALT | Qt
.SHIFT | Qt
.Key_C
)
17 COPY_SHA1
= hotkey(Qt
.CTRL | Qt
.ALT | Qt
.Key_C
)
18 DIFFSTAT
= hotkey(Qt
.ALT | Qt
.Key_D
)
19 DIFF
= hotkey(Qt
.CTRL | Qt
.Key_D
)
20 DIFF_SECONDARY
= hotkey(Qt
.CTRL | Qt
.SHIFT | Qt
.Key_D
)
21 EDIT_SHORT
= hotkey(Qt
.Key_E
)
22 EDIT
= hotkey(Qt
.CTRL | Qt
.Key_E
)
23 EDIT_SECONDARY
= hotkey(Qt
.CTRL | Qt
.SHIFT | Qt
.Key_E
)
24 EXPORT
= hotkey(Qt
.ALT | Qt
.SHIFT | Qt
.Key_E
)
25 FIT
= hotkey(Qt
.Key_F
)
26 FETCH
= hotkey(Qt
.CTRL | Qt
.SHIFT | Qt
.Key_F
)
27 FILTER
= hotkey(Qt
.ALT | Qt
.SHIFT | Qt
.Key_F
)
28 GOTO_END
= hotkey(Qt
.SHIFT | Qt
.Key_G
)
29 GOTO_START
= hotkey(Qt
.Key_G
, Qt
.Key_G
) # gg
30 GREP
= hotkey(Qt
.ALT | Qt
.Key_G
)
32 MOVE_LEFT
= hotkey(Qt
.Key_H
)
33 MOVE_LEFT_SHIFT
= hotkey(Qt
.SHIFT | Qt
.Key_H
)
34 HISTORY
= hotkey(Qt
.CTRL | Qt
.SHIFT | Qt
.Key_H
)
35 SIGNOFF
= hotkey(Qt
.CTRL | Qt
.Key_I
)
36 MOVE_DOWN
= hotkey(Qt
.Key_J
)
37 MOVE_DOWN_SHIFT
= hotkey(Qt
.SHIFT | Qt
.Key_J
)
38 MOVE_DOWN_SECONDARY
= hotkey(Qt
.ALT | Qt
.Key_J
)
39 MOVE_DOWN_TERTIARY
= hotkey(Qt
.SHIFT | Qt
.Key_J
)
40 MOVE_UP
= hotkey(Qt
.Key_K
)
41 MOVE_UP_SHIFT
= hotkey(Qt
.SHIFT | Qt
.Key_K
)
42 MOVE_UP_SECONDARY
= hotkey(Qt
.ALT | Qt
.Key_K
)
43 MOVE_UP_TERTIARY
= hotkey(Qt
.SHIFT | Qt
.Key_K
)
44 MOVE_RIGHT
= hotkey(Qt
.Key_L
)
45 MOVE_RIGHT_SHIFT
= hotkey(Qt
.SHIFT | Qt
.Key_L
)
46 FOCUS
= hotkey(Qt
.CTRL | Qt
.Key_L
)
47 FOCUS_DIFF
= hotkey(Qt
.CTRL | Qt
.Key_J
)
48 FOCUS_INPUT
= hotkey(Qt
.CTRL | Qt
.Key_L
)
49 FOCUS_STATUS
= hotkey(Qt
.CTRL | Qt
.Key_K
)
50 FOCUS_TREE
= hotkey(Qt
.CTRL | Qt
.Key_K
)
51 AMEND
= hotkey(Qt
.CTRL | Qt
.Key_M
)
52 MERGE
= hotkey(Qt
.CTRL | Qt
.SHIFT | Qt
.Key_M
)
53 PUSH
= hotkey(Qt
.CTRL | Qt
.Key_P
)
54 PULL
= hotkey(Qt
.CTRL | Qt
.SHIFT | Qt
.Key_P
)
55 OPEN_REPO_SEARCH
= hotkey(Qt
.ALT | Qt
.Key_P
)
57 QUIT
= hotkey(Qt
.CTRL | Qt
.Key_Q
)
58 REFRESH
= hotkey(Qt
.CTRL | Qt
.Key_R
)
59 REFRESH_SECONDARY
= hotkey(Qt
.Key_F5
)
60 REFRESH_HOTKEYS
= (REFRESH
, REFRESH_SECONDARY
)
61 STAGE_DIFF
= hotkey(Qt
.Key_S
)
62 EDIT_AND_STAGE_DIFF
= hotkey(Qt
.CTRL | Qt
.SHIFT | Qt
.Key_S
)
63 SEARCH
= hotkey(Qt
.CTRL | Qt
.Key_F
)
64 SEARCH_NEXT
= hotkey(Qt
.CTRL | Qt
.Key_G
)
65 SEARCH_PREV
= hotkey(Qt
.CTRL | Qt
.SHIFT | Qt
.Key_G
)
66 STAGE_DIFF_ALT
= hotkey(Qt
.SHIFT | Qt
.Key_S
)
67 STAGE_SELECTION
= hotkey(Qt
.CTRL | Qt
.Key_S
)
68 STAGE_ALL
= hotkey(Qt
.CTRL | Qt
.SHIFT | Qt
.Key_S
)
69 STASH
= hotkey(Qt
.ALT | Qt
.SHIFT | Qt
.Key_S
)
70 FINDER
= hotkey(Qt
.CTRL | Qt
.Key_T
)
71 FINDER_SECONDARY
= hotkey(Qt
.Key_T
)
72 TERMINAL
= hotkey(Qt
.CTRL | Qt
.SHIFT | Qt
.Key_T
)
73 STAGE_UNTRACKED
= hotkey(Qt
.ALT | Qt
.Key_U
)
74 REVERT
= hotkey(Qt
.CTRL | Qt
.Key_U
)
75 REVERT_ALT
= hotkey(Qt
.ALT | Qt
.SHIFT | Qt
.Key_R
)
76 EDIT_AND_REVERT
= hotkey(Qt
.CTRL | Qt
.SHIFT | Qt
.Key_U
)
77 WORD_RIGHT
= hotkey(Qt
.Key_W
)
80 START_OF_LINE
= hotkey(Qt
.Key_0
)
83 BACKSPACE
= hotkey(Qt
.Key_Backspace
)
84 TRASH
= hotkey(Qt
.CTRL | Qt
.Key_Backspace
)
85 DELETE_FILE
= hotkey(Qt
.CTRL | Qt
.SHIFT | Qt
.Key_Backspace
)
86 DELETE_FILE_SECONDARY
= hotkey(Qt
.CTRL | Qt
.Key_Backspace
)
87 PREFERENCES
= hotkey(Qt
.CTRL | Qt
.Key_Comma
)
88 END_OF_LINE
= hotkey(Qt
.Key_Dollar
)
89 DOWN
= hotkey(Qt
.Key_Down
)
90 ENTER
= hotkey(Qt
.Key_Enter
)
91 ZOOM_OUT
= hotkey(Qt
.Key_Minus
)
92 REMOVE_ITEM
= hotkey(Qt
.Key_Minus
)
93 ADD_ITEM
= hotkey(Qt
.Key_Plus
)
94 ZOOM_IN
= hotkey(Qt
.Key_Plus
)
95 ZOOM_IN_SECONDARY
= hotkey(Qt
.Key_Equal
)
97 QUESTION
= hotkey(Qt
.Key_Question
)
98 RETURN
= hotkey(Qt
.Key_Return
)
99 ACCEPT
= (ENTER
, RETURN
)
100 APPLY
= hotkey(Qt
.CTRL | Qt
.Key_Return
)
101 PREPARE_COMMIT_MESSAGE
= hotkey(Qt
.CTRL | Qt
.SHIFT | Qt
.Key_Return
)
102 PRIMARY_ACTION
= hotkey(hotkey(Qt
.Key_Space
))
103 SECONDARY_ACTION
= hotkey(Qt
.SHIFT | Qt
.Key_Space
)
104 LEAVE
= hotkey(Qt
.SHIFT | Qt
.Key_Tab
)
105 UP
= hotkey(Qt
.Key_Up
)
107 CTRL_RETURN
= hotkey(Qt
.CTRL | Qt
.Key_Return
)
108 CTRL_ENTER
= hotkey(Qt
.CTRL | Qt
.Key_Enter
)
111 REBASE_START_AND_CONTINUE
= hotkey(Qt
.ALT | Qt
.Key_R
)
112 REBASE_PICK
= (hotkey(Qt
.Key_1
), hotkey(Qt
.Key_P
))
113 REBASE_REWORD
= (hotkey(Qt
.Key_2
), hotkey(Qt
.Key_R
))
114 REBASE_EDIT
= (hotkey(Qt
.Key_3
), hotkey(Qt
.Key_E
))
115 REBASE_FIXUP
= (hotkey(Qt
.Key_4
), hotkey(Qt
.Key_F
))
116 REBASE_SQUASH
= (hotkey(Qt
.Key_5
), hotkey(Qt
.Key_S
))
118 UNDO
= hotkey(Qt
.CTRL | Qt
.Key_Z
)
119 REDO
= hotkey(Qt
.SHIFT | Qt
.CTRL | Qt
.Key_Z
)
122 COPY
= QKeySequence
.Copy
123 CLOSE
= QKeySequence
.Close
124 CUT
= QKeySequence
.Cut
125 PASTE
= QKeySequence
.Paste
126 DELETE
= QKeySequence
.Delete
127 NEW
= QKeySequence
.New
128 OPEN
= QKeySequence
.Open
129 SELECT_ALL
= QKeySequence
.SelectAll
132 TEXT_DOWN
= hotkey(Qt
.Key_D
)
133 TEXT_UP
= hotkey(Qt
.Key_U
)
134 SELECT_FORWARD
= hotkey(Qt
.SHIFT | Qt
.Key_F
)
135 SELECT_BACK
= hotkey(Qt
.SHIFT | Qt
.Key_B
)
136 SELECT_DOWN
= hotkey(Qt
.SHIFT | Qt
.Key_D
)
137 SELECT_UP
= hotkey(Qt
.SHIFT | Qt
.Key_U
)