Skip to content

Commit 8a3e65a

Browse files
committed
more keybindings
1 parent 924fbe1 commit 8a3e65a

6 files changed

Lines changed: 4728 additions & 107 deletions

File tree

.vscode/settings.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"workbench.colorCustomizations": {
3+
"titleBar.activeForeground": "#fff",
4+
"titleBar.activeBackground": "#1f6700"
5+
},
6+
"window.title": "🤟🏻 ${activeEditorShort}${separator} Configs"
7+
}

_vimrc

Lines changed: 0 additions & 47 deletions
This file was deleted.

code/keybindings.json

Lines changed: 89 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,73 @@
1-
// Place your key bindings in this file to overwrite the defaults
21
[
2+
/**
3+
* ----------------------------------------------------------------------------
4+
* General keybindings
5+
* ----------------------------------------------------------------------------
6+
*/
7+
// Attempt to open workspace settings.json
8+
{
9+
"key": "cmd-,",
10+
"command": "workbench.action.openSettingsJson"
11+
},
12+
{
13+
"key": "cmd-k cmd-,",
14+
"command": "macros.openWorkspaceSettingsJSON"
15+
},
16+
// Clear notifications
17+
{
18+
"key": "cmd+k cmd+n",
19+
"command": "macros.clearOutputAndNotifications"
20+
},
21+
// Jump between change history
22+
{
23+
"key": "cmd+]",
24+
"command": "workbench.action.editor.nextChange",
25+
"when": "editorTextFocus"
26+
},
27+
{
28+
"key": "cmd+[",
29+
"command": "workbench.action.editor.previousChange",
30+
"when": "editorTextFocus"
31+
},
32+
// From https://stackoverflow.com/a/46087295/743464, note it applies to
33+
// splits with tabs which sucks
34+
{
35+
"key": "cmd+1",
36+
"command": "workbench.action.openEditorAtIndex1"
37+
},
38+
{
39+
"key": "cmd+2",
40+
"command": "workbench.action.openEditorAtIndex2"
41+
},
42+
{
43+
"key": "cmd+3",
44+
"command": "workbench.action.openEditorAtIndex3"
45+
},
46+
{
47+
"key": "cmd+4",
48+
"command": "workbench.action.openEditorAtIndex4"
49+
},
50+
{
51+
"key": "cmd+5",
52+
"command": "workbench.action.openEditorAtIndex5"
53+
},
54+
{
55+
"key": "cmd+6",
56+
"command": "workbench.action.openEditorAtIndex6"
57+
},
58+
{
59+
"key": "cmd+7",
60+
"command": "workbench.action.openEditorAtIndex7"
61+
},
62+
{
63+
"key": "cmd+8",
64+
"command": "workbench.action.openEditorAtIndex8"
65+
},
66+
/**
67+
* ----------------------------------------------------------------------------
68+
* Vim Helpers
69+
* ----------------------------------------------------------------------------
70+
*/
371
// Vim navigate backwards/forwards
472
{
573
"key": "ctrl+o",
@@ -11,6 +79,11 @@
1179
"command": "workbench.action.navigateForward",
1280
"when": "editorTextFocus"
1381
},
82+
/**
83+
* ----------------------------------------------------------------------------
84+
* File Helpers
85+
* ----------------------------------------------------------------------------
86+
*/
1487
{
1588
"key": "cmd+k p",
1689
"command": "extension.copyRelativePathOfActiveFile",
@@ -26,6 +99,11 @@
2699
"command": "latex-workshop.tab",
27100
"when": "editorTextFocus"
28101
},
102+
/**
103+
* ----------------------------------------------------------------------------
104+
* Terminal Helpers
105+
* ----------------------------------------------------------------------------
106+
*/
29107
{
30108
"key": "cmd-alt-m",
31109
"command": "workbench.action.terminal.focus"
@@ -39,6 +117,11 @@
39117
"command": "editor.action.revealDefinition",
40118
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
41119
},
120+
/**
121+
* ----------------------------------------------------------------------------
122+
* Rspec Helpers
123+
* ----------------------------------------------------------------------------
124+
*/
42125
// terrible defaults for "rails run specs"
43126
{
44127
"key": "shift+cmd+t",
@@ -49,16 +132,11 @@
49132
"command": "extension.runFileSpecs",
50133
"when": "editorTextFocus"
51134
},
52-
// Open keybindings.json file, since there's no default shortcut for it (LOL)
53-
{
54-
"key": "cmd+k cmd+k",
55-
"command": "workbench.action.openGlobalKeybindingsFile"
56-
},
57-
// Clear notifications
58-
{
59-
"key": "cmd+k cmd+n",
60-
"command": "macros.clearOutputAndNotifications"
61-
},
135+
/**
136+
* ----------------------------------------------------------------------------
137+
* Apex Helpers
138+
* ----------------------------------------------------------------------------
139+
*/
62140
// Rerun last apex test class
63141
{
64142
"key": "cmd+k cmd+x",
@@ -68,50 +146,5 @@
68146
{
69147
"key": "cmd+k cmd+t",
70148
"command": "macros.runLastApexTestMethod"
71-
},
72-
// Jump between change history
73-
{
74-
"key": "cmd+]",
75-
"command": "workbench.action.editor.nextChange",
76-
"when": "editorTextFocus"
77-
},
78-
{
79-
"key": "cmd+[",
80-
"command": "workbench.action.editor.previousChange",
81-
"when": "editorTextFocus"
82-
},
83-
// From https://stackoverflow.com/a/46087295/743464, note it applies to
84-
// splits with tabs which sucks
85-
{
86-
"key": "cmd+1",
87-
"command": "workbench.action.openEditorAtIndex1"
88-
},
89-
{
90-
"key": "cmd+2",
91-
"command": "workbench.action.openEditorAtIndex2"
92-
},
93-
{
94-
"key": "cmd+3",
95-
"command": "workbench.action.openEditorAtIndex3"
96-
},
97-
{
98-
"key": "cmd+4",
99-
"command": "workbench.action.openEditorAtIndex4"
100-
},
101-
{
102-
"key": "cmd+5",
103-
"command": "workbench.action.openEditorAtIndex5"
104-
},
105-
{
106-
"key": "cmd+6",
107-
"command": "workbench.action.openEditorAtIndex6"
108-
},
109-
{
110-
"key": "cmd+7",
111-
"command": "workbench.action.openEditorAtIndex7"
112-
},
113-
{
114-
"key": "cmd+8",
115-
"command": "workbench.action.openEditorAtIndex8"
116149
}
117150
]

code/settings.json

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
{
33
"eslint.enable": true,
44
"javascript.validate.enable": false,
5-
"editor.rulers": [80],
5+
"editor.rulers": [
6+
80
7+
],
68
"window.zoomLevel": 1,
79
"files.exclude": {
810
"**/.DS_Store": true,
@@ -12,7 +14,7 @@
1214
"**/tmp": true
1315
},
1416
"git.autofetch": false,
15-
"editor.minimap.enabled": false,
17+
"editor.minimap.enabled": true,
1618
// NOOOOOOOO
1719
"workbench.editor.enablePreview": true,
1820
"workbench.editor.enablePreviewFromQuickOpen": false,
@@ -89,5 +91,12 @@
8991
"editor.defaultFormatter": "esbenp.prettier-vscode"
9092
},
9193
"editor.formatOnSave": true,
92-
"editor.multiCursorModifier": "ctrlCmd"
93-
}
94+
"editor.multiCursorModifier": "ctrlCmd",
95+
"macros": {
96+
"openWorkspaceSettingsJSON": [
97+
"workbench.action.openWorkspaceSettings",
98+
"workbench.action.openWorkspaceSettings",
99+
"settings.switchToJSON"
100+
]
101+
}
102+
}

iterm2/.DS_Store

6 KB
Binary file not shown.

0 commit comments

Comments
 (0)