]> apps.delaporte.us Git - dotfiles.git/blob - doc/shortcuts.md
Improve confirmation"
[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>
32 watch_keys = ['1','2','3','4','5','6'];
33 locations = [
34 'link here...',
35 'link here...',
36 'link here...',
37 'link here...',
38 'link here...',
39 'link here...',
40 ];
41 document.onkeypress = function (e) {
42 if(e.key in watch_keys)
43 window.location = locations[parseInt(e.key)-1]
44 else {
45 console.log(e);
46 }
47 }
48 </script>
49 ```
50
51 ## Shortcuts in MS PowerToys
52
53 ### Remapped Keys
54
55 In `Keyboard Manager`, `Remap a Key`:
56
57 To Mute/Unmute the `Teams` microphone with the dedicated `Volume Mute` button:
58
59 - `Volume Mute` to `Ctrl+Shift+M`
60
61 ### Remapped Shortcuts
62
63 In `Keyboard Manager`, `Remap a Shortcut`:
64
65 For `Raise Hand`:
66
67 - `Alt+Shift+4` to `Ctrl+Shift+K` in app `teams`
68 - `Alt+Shift+4` to `Alt+Y` in app `zoom`
69
70 For `Mute`:
71
72 - `Alt+Shift+6` to `Ctrl+Shift+M` in app `teams`
73 - `Alt+Shift+6` to `Ctrl+A` in app `zoom`
74
75 For the VSCode/VSCodium terminal:
76
77 - `Alt+Shift+4` to 'Ctrl+`' in app `All Apps`