]> us-delaporte.pagekite.me Git - dotfiles.git/blob - doc/cheatsheets/shortcuts.md
Add a summary of my shortcuts
[dotfiles.git] / doc / cheatsheets / shortcuts.md
1 ##
2
3
4 ## Shortcuts in VSCode
5
6 In VSCode, I have quick keys assigned to Alt+Shift+1 through Alt+Shift+6.
7
8 Here's a helpful mapping in VSCode.
9
10 Journal: New Journal Note
11 Journal: Open Today
12 Search: Focus on Search View
13 Source Control: Focus on Source Control View
14 Remote Explorer: Foucs on Remotes
15 View: Toggle Primary Side Bar Visibility
16
17 In my personal Dashboard file
18
19 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.
20
21 ## Shortcuts JavaScript
22
23 ```html
24 <!-- Script to jump to links on keypresses 1 through 6 -->
25 <script src="./jquery-3.7.0.min.js"></script>
26 <script>
27 watch_keys = ['1','2','3','4','5','6'];
28 locations = [
29 'link here...',
30 'link here...',
31 'link here...',
32 'link here...',
33 'link here...',
34 'link here...',
35 ];
36 $(document).on("keyup", function (e) {
37 if(e.key in watch_keys)
38 window.location = locations[parseInt(e.key)-1]
39 else {
40 console.log(e);
41 }
42 });
43 </script>
44 ```
45
46 ## Shortcuts in MS PowerToys
47
48 In `Keyboard Manager`, `Remap a Shortcut`:
49
50 For `Raise Hand`:
51
52 - `Alt+Shift+4` to `Ctrl+Shift+K` in app `teams`
53 - `Alt+Shift+4` to `Alt+Y` in app `zoom`
54
55 For `Mute`:
56
57 - `Alt+Shift+6` to `Ctrl+Shift+M` in app `teams`
58 - `Alt+Shift+6` to `Ctrl+A` in app `zoom`