]> us-delaporte.pagekite.me Git - dotfiles.git/blob - doc/shortcuts.md
Fixup
[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. Source Control: Focus on Source Control View
15 5. Remote Explorer: Foucs on Remotes
16 6. View: Toggle Primary Side Bar Visibility
17
18 ## Shortcuts JavaScript
19
20 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.
21
22 ```html
23 <!-- Script to jump to links on keypresses 1 through 6 -->
24 <script src="./jquery-3.7.0.min.js"></script>
25 <script>
26 watch_keys = ['1','2','3','4','5','6'];
27 locations = [
28 'link here...',
29 'link here...',
30 'link here...',
31 'link here...',
32 'link here...',
33 'link here...',
34 ];
35 $(document).on("keyup", function (e) {
36 if(e.key in watch_keys)
37 window.location = locations[parseInt(e.key)-1]
38 else {
39 console.log(e);
40 }
41 });
42 </script>
43 ```
44
45 ## Shortcuts in MS PowerToys
46
47 In `Keyboard Manager`, `Remap a Key`:
48
49 To Mute/Unmute the `Teams` microphone with the dedicated `Volume Mute` button:
50
51 - `Volume Mute` to `Ctrl+Shift+M`
52
53 In `Keyboard Manager`, `Remap a Shortcut`:
54
55 For `Raise Hand`:
56
57 - `Alt+Shift+4` to `Ctrl+Shift+K` in app `teams`
58 - `Alt+Shift+4` to `Alt+Y` in app `zoom`
59
60 For `Mute`:
61
62 - `Alt+Shift+6` to `Ctrl+Shift+M` in app `teams`
63 - `Alt+Shift+6` to `Ctrl+A` in app `zoom`