]> apps.delaporte.us Git - dotfiles.git/blob - doc/cheatsheets/shortcuts.md
22e8da73cc07182bedb56ffd3751a3a85dad4ede
[dotfiles.git] / doc / cheatsheets / 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 Journal: New Journal Note
10 Journal: Open Today
11 Search: Focus on Search View
12 Source Control: Focus on Source Control View
13 Remote Explorer: Foucs on Remotes
14 View: Toggle Primary Side Bar Visibility
15
16 In my personal Dashboard file
17
18 I have a bit of JavaScript in the HTML file I use for my homepage. It causes the above buttons to map to whatever I've set my 6 most visited sites to.
19
20 ## Shortcuts JavaScript
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`