Skip to content

Commit 5e6127d

Browse files
author
Keisuke KATO
authored
fixed #36 (#37)
* fixed #36 * fixed readme
1 parent c86f553 commit 5e6127d

File tree

4 files changed

+87
-11
lines changed

4 files changed

+87
-11
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
## 0.2.3 (November 29, 2016)
4+
5+
* enhancement - alt+1 should toggle close corresponding tool window instead of just opening. See [#36](https://github.com/k--kato/vscode-intellij-idea-keybindings/issues/36).
6+
37
## 0.2.2 (November 24, 2016)
48

59
* bug fix - My Ctrl + Delete and Ctrl + Backspace shortcuts are inverted. See [#34](https://github.com/k--kato/vscode-intellij-idea-keybindings/issues/34).

README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,13 @@ Linux, Windows | macOS | Feature | Supported
190190
---------------|------|---------|----------
191191
alt+0 | cmd+0 | Activate Messages window (Problems) | ✅
192192
alt+1 | cmd+1 | Open corresponding tool window (Explorer) | ✅
193+
alt+1 | cmd+1 | Close corresponding tool window (Explorer) | ✅
194+
alt+3 | cmd+3 | Open corresponding tool window (Search) | ✅
195+
alt+3 | cmd+3 | Close corresponding tool window (Search) | ✅
193196
alt+5 | cmd+5 | Open corresponding tool window (Debug) | ✅
197+
alt+5 | cmd+5 | Close corresponding tool window (Debug) | ✅
194198
alt+9 | cmd+9 | Open corresponding tool window (Git) | ✅
199+
alt+9 | cmd+9 | Close corresponding tool window (Git) | ✅
195200
ctrl+s | cmd+s | Save all | ✅
196201
ctrl+alt+y | cmd+alt+y | Synchronize | ✅
197202
ctrl+alt+f | ctrl+cmd+f | Toggle full screen mode | ✅
@@ -219,9 +224,8 @@ shift+ctrl+enter | shift+cmd+enter | Start new line | ✅
219224

220225
1. Install Visual Studio Code 1.7.0 or higher
221226
1. Launch Code
222-
1. From the command palette `Ctrl`-`Shift`-`P` (Windows, Linux) or `Cmd`-`Shift`-`P` (macOS)
223-
1. Select `Extensions: Install Extension`
224-
1. Choose the extension '`intellij-idea-keybindings`'
227+
1. From the extension view `Ctrl`-`Shift`-`X` (Windows, Linux) or `Cmd`-`Shift`-`X` (macOS)
228+
1. Search and Choose the extension `Intellij IDEA Keybindings`
225229
1. Reload Visual Studio Code
226230

227231

@@ -245,13 +249,10 @@ npm install
245249
Now you can compile the code:
246250

247251
1. Launch Code
252+
1. Edit `src/package-with-comment.json`
248253
1. Run Build Task `Ctrl`-`Shift`-`B` (Windows, Linux) or `Cmd`-`Shift`-`B` (macOS)
249-
250-
or
251-
252-
1. Launch Code
253-
1. From the command palette `Ctrl`-`Shift`-`P` (Windows, Linux) or `Cmd`-`Shift`-`P` (macOS)
254-
1. Select `Tasks: Run Build Task`
254+
1. Run Command Markdown Generator `node src/tool/gene-keybind-markdown.js`
255+
1. Paste the Command Markdown to `README.md`
255256

256257
After the initial compile, the source files will be watched and recompiled
257258
when changes are saved.

package.json

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "intellij-idea-keybindings",
3-
"version": "0.2.2",
3+
"version": "0.2.3",
44
"publisher": "k--kato",
55
"engines": {
66
"vscode": "1.7.x"
@@ -1127,17 +1127,50 @@
11271127
"key": "alt+1",
11281128
"mac": "cmd+1",
11291129
"command": "workbench.view.explorer",
1130+
"when": "editorFocus",
11301131
"intellij": "Open corresponding tool window (Explorer)"
1132+
}, {
1133+
"key": "alt+1",
1134+
"mac": "cmd+1",
1135+
"command": "workbench.action.toggleSidebarVisibility",
1136+
"when": "!editorFocus",
1137+
"intellij": "Close corresponding tool window (Explorer)"
1138+
}, {
1139+
"key": "alt+3",
1140+
"mac": "cmd+3",
1141+
"command": "workbench.view.search",
1142+
"when": "!searchViewletVisible",
1143+
"intellij": "Open corresponding tool window (Search)"
1144+
}, {
1145+
"key": "alt+3",
1146+
"mac": "cmd+3",
1147+
"command": "workbench.action.toggleSidebarVisibility",
1148+
"when": "searchViewletVisible",
1149+
"intellij": "Close corresponding tool window (Search)"
11311150
}, {
11321151
"key": "alt+5",
11331152
"mac": "cmd+5",
11341153
"command": "workbench.view.debug",
1154+
"when": "!editorFocus",
11351155
"intellij": "Open corresponding tool window (Debug)"
1156+
}, {
1157+
"key": "alt+5",
1158+
"mac": "cmd+5",
1159+
"command": "workbench.action.toggleSidebarVisibility",
1160+
"when": "!editorFocus",
1161+
"intellij": "Close corresponding tool window (Debug)"
11361162
}, {
11371163
"key": "alt+9",
11381164
"mac": "cmd+9",
11391165
"command": "workbench.view.git",
1166+
"when": "editorFocus",
11401167
"intellij": "Open corresponding tool window (Git)"
1168+
}, {
1169+
"key": "alt+9",
1170+
"mac": "cmd+9",
1171+
"command": "workbench.action.toggleSidebarVisibility",
1172+
"when": "!editorFocus",
1173+
"intellij": "Close corresponding tool window (Git)"
11411174
}, {
11421175
"key": "ctrl+s",
11431176
"mac": "cmd+s",

src/package-with-comment.json

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "intellij-idea-keybindings",
3-
"version": "0.2.2",
3+
"version": "0.2.3",
44
"publisher": "k--kato",
55
"engines": {
66
"vscode": "1.7.x"
@@ -1172,20 +1172,58 @@
11721172
"key": "alt+1",
11731173
"mac": "cmd+1",
11741174
"command": "workbench.view.explorer",
1175+
"when": "editorFocus",
11751176
"intellij": "Open corresponding tool window (Explorer)"
11761177
},
1178+
{
1179+
"key": "alt+1",
1180+
"mac": "cmd+1",
1181+
"command": "workbench.action.toggleSidebarVisibility",
1182+
"when": "!editorFocus",
1183+
"intellij": "Close corresponding tool window (Explorer)"
1184+
},
1185+
{
1186+
"key": "alt+3",
1187+
"mac": "cmd+3",
1188+
"command": "workbench.view.search",
1189+
"when": "!searchViewletVisible",
1190+
"intellij": "Open corresponding tool window (Search)"
1191+
},
1192+
{
1193+
"key": "alt+3",
1194+
"mac": "cmd+3",
1195+
"command": "workbench.action.toggleSidebarVisibility",
1196+
"when": "searchViewletVisible",
1197+
"intellij": "Close corresponding tool window (Search)"
1198+
},
11771199
{
11781200
"key": "alt+5",
11791201
"mac": "cmd+5",
11801202
"command": "workbench.view.debug",
1203+
"when": "!editorFocus",
11811204
"intellij": "Open corresponding tool window (Debug)"
11821205
},
1206+
{
1207+
"key": "alt+5",
1208+
"mac": "cmd+5",
1209+
"command": "workbench.action.toggleSidebarVisibility",
1210+
"when": "!editorFocus",
1211+
"intellij": "Close corresponding tool window (Debug)"
1212+
},
11831213
{
11841214
"key": "alt+9",
11851215
"mac": "cmd+9",
11861216
"command": "workbench.view.git",
1217+
"when": "editorFocus",
11871218
"intellij": "Open corresponding tool window (Git)"
11881219
},
1220+
{
1221+
"key": "alt+9",
1222+
"mac": "cmd+9",
1223+
"command": "workbench.action.toggleSidebarVisibility",
1224+
"when": "!editorFocus",
1225+
"intellij": "Close corresponding tool window (Git)"
1226+
},
11891227
{
11901228
"key": "ctrl+s",
11911229
"mac": "cmd+s",

0 commit comments

Comments
 (0)