]> us-delaporte.pagekite.me Git - dotfiles.git/blob - doc/shortcuts.md
Fix?
[dotfiles.git] / doc / shortcuts.md
1 # Shortcuts
2
3 ## Shortcuts in VSCode
4
5 In VSCode, I have quick keys assigned to Alt+Shift+1 through Alt+Shift+6.
6
7 Here's a helpful mapping in VSCode.
8
9 Alt+Shift+(1 through 6):
10
11 1. Journal: New Journal Note
12 2. View: Toggle Zen Mode
13 3. Search: Focus on Search View
14 4. View: Toggle Terminal
15 5. View: Toggle Maximized Panel (Helpful for expanding terminal upward)
16 6. View: Toggle Primary Side Bar Visibility
17
18 Alt+Home (Web Home) - Journal: Open Today
19 Alt+Right (Web Forward) - Journal: Open Tomorrow
20 Alt+Left (Web Back) - Journal: Open Yesterday
21
22 > Tip: When reviewing shortcuts in VSCode, set the search to `User` to see your own.
23 > Tip: There is an option to `Reset Keybinding` in the right-click menu.
24
25 ## Shortcuts JavaScript
26
27 I have a bit of JavaScript in the HTML file I use for my homepage. It causes the above buttons 1-6 to map to whatever I've set my 6 most visited sites to.
28
29 ```html
30 <!-- Script to jump to links on keypresses 1 through 6 -->
31 <script src="./jquery-3.7.0.min.js"></script>
32 <script>
33 watch_keys = ['1','2','3','4','5','6'];
34 locations = [
35 'link here...',
36 'link here...',
37 'link here...',
38 'link here...',
39 'link here...',
40 'link here...',
41 ];
42 $(document).on("keyup", function (e) {
43 if(e.key in watch_keys)
44 window.location = locations[parseInt(e.key)-1]
45 else {
46 console.log(e);
47 }
48 });
49 </script>
50 ```
51
52 ## Shortcuts in MS PowerToys
53
54 ### Remapped Keys
55
56 In `Keyboard Manager`, `Remap a Key`:
57
58 To Mute/Unmute the `Teams` microphone with the dedicated `Volume Mute` button:
59
60 - `Volume Mute` to `Ctrl+Shift+M`
61
62 ### Remapped Shortcuts
63
64 In `Keyboard Manager`, `Remap a Shortcut`:
65
66 For `Raise Hand`:
67
68 - `Alt+Shift+4` to `Ctrl+Shift+K` in app `teams`
69 - `Alt+Shift+4` to `Alt+Y` in app `zoom`
70
71 For `Mute`:
72
73 - `Alt+Shift+6` to `Ctrl+Shift+M` in app `teams`
74 - `Alt+Shift+6` to `Ctrl+A` in app `zoom`
75
76 For the VSCode/VSCodium terminal:
77
78 - `Alt+Shift+4` to 'Ctrl+`' in app `All Apps`