]> us-delaporte.pagekite.me Git - dotfiles.git/blob - doc/shortcuts.md
Hide accessible view
[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 See also `files/vscodium/keybindings.json`
8
9 Here's a helpful mapping in VSCode.
10
11 Alt+Shift+(1 through 6):
12
13 1. Journal: New Journal Note
14 2. View: Toggle Zen Mode
15 3. Search: Focus on Search View
16 4. View: Toggle Terminal
17 5. View: Toggle Maximized Panel (Helpful for expanding terminal upward)
18 6. View: Toggle Primary Side Bar Visibility
19
20 Alt+Home (Web Home) - Journal: Open Today
21 Alt+Right (Web Forward) - Journal: Open Tomorrow
22 Alt+Left (Web Back) - Journal: Open Yesterday
23
24 > Tip: When reviewing shortcuts in VSCode, set the search to `User` to see your own.
25 > Tip: There is an option to `Reset Keybinding` in the right-click menu.
26
27 ## Shortcuts JavaScript
28
29 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.
30
31 ```html
32 <!-- Script to jump to links on keypresses 1 through 6 -->
33 <script>
34 watch_keys = ['1','2','3','4','5','6'];
35 locations = [
36 'link here...',
37 'link here...',
38 'link here...',
39 'link here...',
40 'link here...',
41 'link here...',
42 ];
43 document.onkeypress = function (e) {
44 if(e.key in watch_keys)
45 window.location = locations[parseInt(e.key)-1]
46 else {
47 console.log(e);
48 }
49 }
50 </script>
51 ```
52
53 ## Shortcuts in MS PowerToys
54
55 ### Remapped Keys
56
57 In `Keyboard Manager`, `Remap a Key`:
58
59 To Mute/Unmute the `Teams` microphone with the dedicated `Volume Mute` button:
60
61 - `Volume Mute` to `Ctrl+Shift+M`
62
63 ### Remapped Shortcuts
64
65 In `Keyboard Manager`, `Remap a Shortcut`:
66
67 For `Raise Hand`:
68
69 - `Alt+Shift+4` to `Ctrl+Shift+K` in app `teams`
70 - `Alt+Shift+4` to `Alt+Y` in app `zoom`
71
72 For `Mute`:
73
74 - `Alt+Shift+6` to `Ctrl+Shift+M` in app `teams`
75 - `Alt+Shift+6` to `Ctrl+A` in app `zoom`
76
77 For the VSCode/VSCodium terminal:
78
79 - `Alt+Shift+4` to 'Ctrl+`' in app `All Apps`