From bd0a280116d9c7bb584ea69f4ef6b1fdbb1a0ddf Mon Sep 17 00:00:00 2001 From: "Mads Hartmann (GitHub Actions)" Date: Thu, 14 Dec 2023 19:03:10 +0000 Subject: [PATCH] Updated from Notion --- .../src/pages/index.md | 94 +++++++++++++++---- 1 file changed, 77 insertions(+), 17 deletions(-) diff --git a/sites/computer.mads-hartmann.com/src/pages/index.md b/sites/computer.mads-hartmann.com/src/pages/index.md index 8ea5f3c..2ba395c 100644 --- a/sites/computer.mads-hartmann.com/src/pages/index.md +++ b/sites/computer.mads-hartmann.com/src/pages/index.md @@ -9,8 +9,7 @@ title: ~ v3

Hej 👋 welcome to computer.mads-hartmann.com. I use this little site to jot down notes about my computer. How it’s configured, what applications I use, and how I use them. It contains a little guide for bootstrapping new computers but mostly this is for documenting how I use my computer; documenting things helps me think.

Applications

VSCode

-

This is the list keyboard shortcuts I generally use. I try to stick to the defaults where possible and only use custom shortcuts when needed.

-

My shortcuts are heavily influenced by my Emacs days.

+

This is the list of keyboard shortcuts I generally use. It’s a bit of a weird mixture of using the VSCode default for most things while also accepting that I have a lot of Emacs muscle memory that I might as well put to good use.

@@ -94,13 +93,13 @@ title: ~ v3 - + - + @@ -117,28 +116,34 @@ title: ~ v3 - - + + - - + + + + - - - + + + + + + + + - - + @@ -186,6 +191,17 @@ title: ~ v3 "command": "workbench.action.focusActiveEditorGroup", "when": "terminalFocus" }, + // Terminal + { + "key": "cmd+n", + "command": "workbench.action.terminal.new", + "when": "terminalFocus" + }, + { + "key": "cmd+w", + "command": "workbench.action.terminal.kill", + "when": "terminalFocus" + }, // the default is mapped to ⌘+. but I use that for Raycast. { "key": "ctrl+.", @@ -211,6 +227,54 @@ title: ~ v3 { "key": "cmd+5", "command": "workbench.action.openEditorAtIndex5" + }, + { + "key": "ctrl+tab", + "command": "workbench.action.nextEditorInGroup" + }, + { + "key": "ctrl+shift+tab", + "command": "workbench.action.previousEditorInGroup" + }, + { + "key": "ctrl+x 2", + "command": "workbench.action.splitEditorDown", + "when": "!terminalFocus" + }, + { + "key": "ctrl+x 3", + "command": "workbench.action.splitEditorRight", + "when": "!terminalFocus" + }, + { + "key": "ctrl+x 3", + "command": "workbench.action.terminal.split", + "when": "terminalFocus" + }, + { + "key": "ctrl+x 2", + "command": "workbench.action.terminal.split", + "when": "terminalFocus" + }, + { + "key": "ctrl+x b", + "command": "workbench.action.quickOpenPreviousRecentlyUsedEditor" + }, + { + "key": "ctrl+x o", + "command": "workbench.action.focusNextGroup" + }, + { + "key": "ctrl+x 0", + "command": "workbench.action.closeEditorsInGroup" + }, + { + "key": "ctrl+x 1", + "command": "workbench.action.closeEditorsInOtherGroups" + }, + { + "key": "ctrl+x k", + "command": "workbench.action.closeActiveEditor" } ] @@ -338,10 +402,6 @@ autoload -Uz compinit && compinit
export SSH_AUTH_SOCK=~/Library/Group\ Containers/2BUA8C4S2C.com.1password/t/agent.sock
 ssh-add -l
 
-

devenv

-

I use devenv where I can:

-
nix profile install github:cachix/devenv/v0.6
-

Changelog

The current version is v3

⌘K ↓Move editor group down (same for the other directions)Move editor group down - same for the other directions
⌘K ⌘↓Focus Editor Group Down (same for the other directions)Focus Editor Group Down - same for the other directions
no - matches Emacs’ defaults
^X 2View: Split Editor Down^X 0View: Close All Editors in Group no - matches Emacs’ defaults
^X 3View: Split Editor Right^X 1View: Close Editors in Other Groups no - matches Emacs’ defaults
^X 2View: Split Editor Down no - matches Emacs’ defaults
^X 3View: Split Editor Right no - matches Emacs’ defaults
^X KView: Close Editor no - matches Emacs’ defaults
⌘<