]> apps.delaporte.us Git - dotfiles.git/blobdiff - doc/shortcuts.md
Nicer file chooser
[dotfiles.git] / doc / shortcuts.md
index 1aa87d9a1bc3b387a1cb4e8de2865aad468f12f7..698ae951c1a2c8d66f7ab2f8cb02b4349ebda68d 100644 (file)
@@ -4,6 +4,8 @@
 
 In VSCode, I have quick keys assigned to Alt+Shift+1 through Alt+Shift+6.
 
 
 In VSCode, I have quick keys assigned to Alt+Shift+1 through Alt+Shift+6.
 
+See also `files/vscodium/keybindings.json`
+
 Here's a helpful mapping in VSCode.
 
 Alt+Shift+(1 through 6):
 Here's a helpful mapping in VSCode.
 
 Alt+Shift+(1 through 6):
@@ -28,7 +30,6 @@ I have a bit of JavaScript in the HTML file I use for my homepage. It causes the
 
 ```html
 <!-- Script to jump to links on keypresses 1 through 6 -->
 
 ```html
 <!-- Script to jump to links on keypresses 1 through 6 -->
-<script src="./jquery-3.7.0.min.js"></script>
 <script>
        watch_keys = ['1','2','3','4','5','6'];
        locations = [
 <script>
        watch_keys = ['1','2','3','4','5','6'];
        locations = [
@@ -39,13 +40,13 @@ I have a bit of JavaScript in the HTML file I use for my homepage. It causes the
                'link here...',
                'link here...',
        ];
                'link here...',
                'link here...',
        ];
-  $(document).on("keyup", function (e) {
+  document.onkeypress = function (e) {
     if(e.key in watch_keys)
     if(e.key in watch_keys)
-               window.location = locations[parseInt(e.key)-1]
+      window.location = locations[parseInt(e.key)-1]
     else {
       console.log(e);
     }
     else {
       console.log(e);
     }
-});
+  }
 </script>
 ```
 
 </script>
 ```