Robot Has No Heart

Xavier Shay blogs here

A robot that does not have a heart

Migrating from TSlime and Vim to VSCode

I’m trying out VSCode. It’s pretty good. Using the Vim extension, I can recreate my tslime workflow giving me one command save-cancel-rerun behaviour in the integrated terminal. In Preferences -> Settings, and JSON edit mode, add the following to the existing:

 1 {
 2     "vim.leader": ";",
 3     "vim.normalModeKeyBindingsNonRecursive": [
 4         {
 5             "before": ["<leader>", "p"],
 6             "after": [],
 7             "commands": [
 8                 {
 9                     "command": "workbench.action.quickOpen"
10                 }
11             ],
12         },
13         {
14             "before": ["<leader>", "s"],
15             "after": [],
16             "commands": [
17                 {
18                     "command": "workbench.action.files.save"
19                 },
20                 {
21                     "command": "workbench.action.terminal.sendSequence",
22                     "args": {"text": "\u0003!!\u000d"}
23                 }
24             ]
25         }
26     ],
27 }

Also includes a cheeky <leader>p binding to replace command+P for quick open since it’s more ergonomic on my layout. Relevant documentation:

A pretty flower Another pretty flower