Skip to content

Instantly share code, notes, and snippets.

View cschleiden's full-sized avatar

Christopher Schleiden cschleiden

View GitHub Profile
@cschleiden
cschleiden / shortcuts.json
Created September 15, 2020 21:24
VS Code Emacs-Like Keyboard Shortcuts
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "ctrl+k ctrl+s",
"command": "saveAll",
"when": "editorTextFocus"
},
{
"key": "ctrl+p",
"command": "cursorUp"
---
name: Greetings
description: Greets users who are first time contributors to the repo
iconName: octicon smiley
categories: [Automation, SDLC]
---
name: Greetings
on: [pull_request, issues]
{
"~d" = "deleteWordForward:";
"^w" = "deleteWordBackward:";
"~f" = "moveWordForward:";
"~b" = "moveWordBackward:";
"\UF729" = moveToBeginningOfParagraph:; // home
"\UF72B" = moveToEndOfParagraph:; // end
}
@cschleiden
cschleiden / Default (Windows).sublime-keymap
Created August 8, 2019 18:22
Sublime Text Emacs-like key bindings
[
{ "keys": ["alt+b"], "command": "move", "args": {"by": "words", "forward": false} },
{ "keys": ["alt+f"], "command": "move", "args": {"by": "word_ends", "forward": true} },
{"keys": ["ctrl+b"], "command": "move", "args": {"by": "characters", "forward": false} },
{"keys": ["ctrl+f"], "command": "move", "args": {"by": "characters", "forward": true} },
{"keys": ["ctrl+p"], "command": "move", "args": {"by": "lines", "forward": false} },
{"keys": ["ctrl+n"], "command": "move", "args": {"by": "lines", "forward": true} },
@cschleiden
cschleiden / typescriptreact.json
Last active April 11, 2017 22:30
VS Code React snippets to destructure props/state
{
"render, destructure props": {
"prefix": "cp",
"body": [
"const { $0 } = this.props;"
]
},
"render, destructure state": {
"prefix": "cs",
"body": [
Bookmarklet to apply red "rejected" stencil in "Repro Steps"
javascript:(function()%7B%24(%22.tfs-collapsible-text%20p%22).filter(function()%20%7B%20return%20%24(this).text()%20%3D%3D%3D%20%22Repro%20Steps%22%3B%20%7D).parent().parent().parent().find(%22iframe%22).contents().find(%22body%22).append('%3Cimg%20style%3D%22position%3Aabsolute%3Bleft%3A10%3Btop%3A10%3Bwidth%3A250px%3Bopacity%3A0.7%3B%22%20src%3D%22data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAAeMAAAEICAYAAAEb86zvAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAGmESURBVHhe7Z0H3OVE1f8Dyy5lWXqRKqx0QQFFEFAEQaoFBbGABQQFUcQOFooiRcWCCryIijRF1BdFQXpXAekdpPfOLrDlWfj%2Fv7%2FZk7yT3OTe3Hvz1D2%2Fz%2FN7Jpk550xyM8lkJjNnEsecjP%2FH36tJcrXtzhnQSafk5KdY9NhFfMLp%2FitJcktIHKuITxrOlW5zxU9QOuH82h9IkvcHhdEOruhv05Ms0kS0cUQaxw8wC15jSaMT6cnYCf0%2B3bbkgDQujUfulXR71IGDfyQ9GZ0IV%2F3EdN9EJLN4JMPfbCB7n22OLnAi8%2BhkOIFnCVdMT040EZ3cq3F8nBYDuVlK41f5pUWNDqQnxYHPsqgszuL%2FqtCScojlUP4E4cLI%2F86SRzY44K9wsPNrOz4Rntw7BoEKSAa9aQq1z%2FZNqS6cEIRGAzjwrGhbVDg528xA
@cschleiden
cschleiden / ChangeCapsToControl.reg
Last active October 19, 2022 15:54
emacs-like navigation keybindings for VS Code
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00