]> us-delaporte.pagekite.me Git - dotfiles.git/blob - doc/shortcuts.md
Merge branch 'main' of github.com:edthedev/dotfiles
[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 ### Remapped Keys
48
49 In `Keyboard Manager`, `Remap a Key`:
50
51 To Mute/Unmute the `Teams` microphone with the dedicated `Volume Mute` button:
52
53 - `Volume Mute` to `Ctrl+Shift+M`
54
55 ### Remapped Shortcuts
56
57 In `Keyboard Manager`, `Remap a Shortcut`:
58
59 For `Raise Hand`:
60
61 - `Alt+Shift+4` to `Ctrl+Shift+K` in app `teams`
62 - `Alt+Shift+4` to `Alt+Y` in app `zoom`
63
64 For `Mute`:
65
66 - `Alt+Shift+6` to `Ctrl+Shift+M` in app `teams`
67 - `Alt+Shift+6` to `Ctrl+A` in app `zoom`
68
69 For the VSCode/VSCodium terminal:
70
71 - `Alt+Shift+4` to 'Ctrl+`' in app `All Apps`