]> apps.delaporte.us Git - dotfiles.git/blob - doc/cheatsheets/shortcuts.md
548eb09629cd8f5aa9a4dc69e8740d26a53083cc
[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 Shortcut`:
48
49 For `Raise Hand`:
50
51 - `Alt+Shift+4` to `Ctrl+Shift+K` in app `teams`
52 - `Alt+Shift+4` to `Alt+Y` in app `zoom`
53
54 For `Mute`:
55
56 - `Alt+Shift+6` to `Ctrl+Shift+M` in app `teams`
57 - `Alt+Shift+6` to `Ctrl+A` in app `zoom`