-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCustom-Mma-Shortcut-Maker.nb
43 lines (37 loc) · 1.42 KB
/
Custom-Mma-Shortcut-Maker.nb
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
ClearAll["Global`*"];
Remove["Global`*"];
(*With alphaSet*)
alphaSet = {a, b, c, d, e, f, g, h, j, k, i, l, m, n, o, p, q, r, s,
t, u, v, w, x, y, z};
Row["
Item[KeyEvent[\"" <> ToString[alphaSet[[#]]] <>
"\", Modifiers ->{Control, Command}],
FrontEndExecute[{
FrontEnd`NotebookWrite[FrontEnd`InputNotebook[],
" <> ToString["\"\[DoubleStruck"] <>
Capitalize[ToString[alphaSet[[#]]]] <> ToString["]\""] <> ", After]
}]],
Item[KeyEvent[\"" <> ToString[alphaSet[[#]]] <>
"\", Modifiers ->{Control, Command, Shift}],
FrontEndExecute[{
FrontEnd`NotebookWrite[FrontEnd`InputNotebook[],
" <> ToString["\"\[DoubleStruckCapital"] <>
Capitalize[ToString[alphaSet[[#]]]] <> ToString["]\""] <> ", After]
}]]" & /@ Range@Length@alphaSet, ","]
(*With Alphabet[]*)
abc = Alphabet[];
Row["
Item[KeyEvent[\"" <> abc[[#]] <>
"\", Modifiers ->{Control, Command}],
FrontEndExecute[{
FrontEnd`NotebookWrite[FrontEnd`InputNotebook[],
" <> ToString["\"\[DoubleStruck"] <> Capitalize[abc[[#]]] <>
ToString["]\""] <> ", After]
}]],
Item[KeyEvent[\"" <> abc[[#]] <>
"\", Modifiers ->{Control, Command, Shift}],
FrontEndExecute[{
FrontEnd`NotebookWrite[FrontEnd`InputNotebook[],
" <> ToString["\"\[DoubleStruckCapital"] <>
Capitalize[abc[[#]]] <> ToString["]\""] <> ", After]
}]]" & /@ Range@Length@abc, ","]