]> us-delaporte.pagekite.me Git - dotfiles.git/blob - doc/shortcuts.md
More tidying
[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. Journal: Open Today
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 > Tip: When reviewing shortcuts in VSCode, set the search to `User` to see your own.
19 > Tip: There is an option to `Reset Keybinding` in the right-click menu.
20
21 ## Shortcuts JavaScript
22
23 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.
24
25 ```html
26 <!-- Script to jump to links on keypresses 1 through 6 -->
27 <script src="./jquery-3.7.0.min.js"></script>
28 <script>
29 watch_keys = ['1','2','3','4','5','6'];
30 locations = [
31 'link here...',
32 'link here...',
33 'link here...',
34 'link here...',
35 'link here...',
36 'link here...',
37 ];
38 $(document).on("keyup", function (e) {
39 if(e.key in watch_keys)
40 window.location = locations[parseInt(e.key)-1]
41 else {
42 console.log(e);
43 }
44 });
45 </script>
46 ```
47
48 ## Shortcuts in MS PowerToys
49
50 ### Remapped Keys
51
52 In `Keyboard Manager`, `Remap a Key`:
53
54 To Mute/Unmute the `Teams` microphone with the dedicated `Volume Mute` button:
55
56 - `Volume Mute` to `Ctrl+Shift+M`
57
58 ### Remapped Shortcuts
59
60 In `Keyboard Manager`, `Remap a Shortcut`:
61
62 For `Raise Hand`:
63
64 - `Alt+Shift+4` to `Ctrl+Shift+K` in app `teams`
65 - `Alt+Shift+4` to `Alt+Y` in app `zoom`
66
67 For `Mute`:
68
69 - `Alt+Shift+6` to `Ctrl+Shift+M` in app `teams`
70 - `Alt+Shift+6` to `Ctrl+A` in app `zoom`
71
72 For the VSCode/VSCodium terminal:
73
74 - `Alt+Shift+4` to 'Ctrl+`' in app `All Apps`