-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathprivate.xml
More file actions
226 lines (194 loc) · 5.69 KB
/
private.xml
File metadata and controls
226 lines (194 loc) · 5.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
<?xml version="1.0"?>
<root>
<!-- Application Definitions -->
<appdef>
<appname>MICROSOFT_REMOTE</appname>
<equal>com.microsoft.rdc.macos</equal>
</appdef>
<appdef>
<appname>VIRTUALMACHINE</appname>
<equal>org.virtualbox.app.VirtualBoxVM</equal>
</appdef>
<appdef>
<appname>TEAMVIEWER</appname>
<equal>com.teamviewer.TeamViewer</equal>
</appdef>
<appdef>
<appname>LIQUID</appname>
<equal>tv.liquidsky</equal>
</appdef>
<appdef>
<appname>PYCHARM</appname>
<equal>com.jetbrains.pycharm</equal>
</appdef>
<appdef>
<appname>FINDER</appname>
<equal>com.apple.finder</equal>
</appdef>
<appdef>
<appname>CLION</appname>
<equal>com.jetbrains.CLion</equal>
</appdef>
<appdef>
<appname>ANDROID</appname>
<equal>com.google.android.studio</equal>
</appdef>
<appdef>
<appname>VSCODE</appname>
<equal>com.microsoft.VSCode</equal>
</appdef>
<appdef>
<appname>SUBLIME</appname>
<equal>com.sublimetext.3</equal>
</appdef>
<appdef>
<appname>CHROME</appname>
<equal>com.google.Chrome</equal>
</appdef>
<windownamedef>
<name>GoogleDev</name>
<regex>Developer Tools -</regex>
</windownamedef>
<item>
<name>Ali Naci Custom Settings</name>
<identifier>alinacicustom</identifier>
<!-- Passthrough for virtual machines and remote connections -->
<block>
<only>VIRTUALMACHINE, LIQUID, TEAMVIEWER, MICROSOFT_REMOTE</only>
<autogen>
__PassThrough__
</autogen>
</block>
<!-- Invert left control with left command except for some IntelliJ products -->
<block>
<not>PYCHARM</not>
<not>CLION</not>
<not>ANDROID</not>
<not>TERMINAL</not>
<autogen>
--KeyToKey--
KeyCode::CONTROL_L, KeyCode::COMMAND_L
</autogen>
<autogen>
--KeyToKey--
KeyCode::COMMAND_L, KeyCode::CONTROL_L
</autogen>
</block>
<!-- Autocomplete for vscode -->
<block>
<only>VSCODE</only>
<autogen>
--KeyToKey--
KeyCode::SPACE, ModifierFlag::COMMAND_L, KeyCode::SPACE, ModifierFlag::CONTROL_L
</autogen>
</block>
<!-- I am used to selecting word using CTRL + left/right - With VS mapping these do not work with the control key on IntelliJ so swap with command for these andassignney bindings on IntelliJ preferences. -->
<block>
<only>PYCHARM, ANDROID, CLION</only>
<autogen>
--KeyToKey--
KeyCode::CURSOR_LEFT, ModifierFlag::CONTROL_L,
KeyCode::CURSOR_LEFT, ModifierFlag::COMMAND_L
</autogen>
<autogen>
--KeyToKey--
KeyCode::CURSOR_RIGHT, ModifierFlag::CONTROL_L,
KeyCode::CURSOR_RIGHT, ModifierFlag::COMMAND_L
</autogen>
</block>
<!-- Do Option left/right on other apps to select single words -->
<block>
<not>PYCHARM</not>
<not>ANDROID</not>
<not>CLION</not>
<autogen>
--KeyToKey--
KeyCode::CURSOR_LEFT, ModifierFlag::COMMAND_L,
KeyCode::CURSOR_LEFT, ModifierFlag::OPTION_L
</autogen>
<autogen>
--KeyToKey--
KeyCode::CURSOR_RIGHT, ModifierFlag::COMMAND_L,
KeyCode::CURSOR_RIGHT, ModifierFlag::OPTION_L
</autogen>
</block>
<!-- Goto the end with CTRL + End on terminal -->
<block>
<only>TERMINAL</only>
<autogen>
--KeyToKey--
KeyCode::END, KeyCode::E, ModifierFlag::CONTROL_L
</autogen>
<autogen>
--KeyToKey--
KeyCode::HOME, KeyCode::A, ModifierFlag::CONTROL_L
</autogen>
</block>
<block>
<autogen>
--KeyToKey--
KeyCode::DANISH_DOLLAR, KeyCode::BACKQUOTE
</autogen>
<!-- Show desktop with COMMAND + D (F13 is assigned show destop on Mac configuration) -->
<autogen>
--KeyToKey--
KeyCode::D, ModifierFlag::CONTROL_L, KeyCode::F13
</autogen>
</block>
<!-- Select up to end/start of line using shift + END / HOME - With VS mapping these do not work with the control key only (Need to define new bindings on IntelliJ preferences)-->
<block>
<not>PYCHARM</not>
<not>ANDROID</not>
<not>CLION</not>
<not>VSCODE</not>
<autogen>
--KeyToKey--
KeyCode::END, ModifierFlag::SHIFT_L, KeyCode::CURSOR_RIGHT, ModifierFlag::COMMAND_L | ModifierFlag::SHIFT_L
</autogen>
<autogen>
--KeyToKey--
KeyCode::HOME, ModifierFlag::SHIFT_L, KeyCode::CURSOR_LEFT, ModifierFlag::COMMAND_L | ModifierFlag::SHIFT_L
</autogen>
<autogen>
--KeyToKey--
KeyCode::END, KeyCode::CURSOR_RIGHT, ModifierFlag::COMMAND_L
</autogen>
<autogen>
--KeyToKey--
KeyCode::HOME, KeyCode::CURSOR_LEFT, ModifierFlag::COMMAND_L
</autogen>
</block>
<!-- Refresh using F5, Find with F3 and Open dev tools with F12 on Chrome browser -->
<block>
<only>CHROME</only>
<autogen>
--KeyToKey--
KeyCode::F5, KeyCode::R, ModifierFlag::COMMAND_L
</autogen>
<autogen>
--KeyToKey--
KeyCode::F3, KeyCode::G, ModifierFlag::COMMAND_L
</autogen>
<autogen>
--KeyToKey--
KeyCode::F12, KeyCode::I, ModifierFlag::COMMAND_L | ModifierFlag::OPTION_L
</autogen>
<!--Control tab to switch tabs-->
<autogen>
--KeyToKey--
KeyCode::TAB, ModifierFlag::COMMAND_L,
KeyCode::TAB, ModifierFlag::CONTROL_L
</autogen>
</block>
<!-- Select using shift on Chrome developer tools -->
<block>
<only>CHROME</only>
<windowname_only>GoogleDev</windowname_only>
<uielementrole_not>AXTextArea, AXTextField</uielementrole_not>
<autogen>
--KeyToKey--
KeyCode::SHIFT_L, KeyCode::OPTION_L
</autogen>
</block>
</item>
</root>