diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..4908eba --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,9 @@ +## Releases + +1.5.0 - New keybindings and nit fixes per [@bhancock8](https://github.com/bhancock8) + +1.4.0 - Added Windows / Linux key bindings and a number of missing commands. Updated the README. + +1.3.0 - Improved README + +1.2.0 - Fixes a number of keybinding changes with [PR #9](https://github.com/Microsoft/vscode-sublime-keybindings/pull/9) and [PR #12](https://github.com/Microsoft/vscode-sublime-keybindings/pull/12) (credit to [securingsincity](https://github.com/Microsoft/vscode-sublime-keybindings/issues?q=is%3Apr+author%3Asecuringsincity) and [benmosher](https://github.com/Microsoft/vscode-sublime-keybindings/issues?q=is%3Apr+author%3Abenmosher)). \ No newline at end of file diff --git a/OLD_README.md b/OLD_README.md new file mode 100644 index 0000000..2736ecc --- /dev/null +++ b/OLD_README.md @@ -0,0 +1,40 @@ +| Windows / Linux | Mac | Description | VSC Command | +| --------------- | --- | ------- | ------------ | ----------- | +| f9 | f5 | Sort lines | `editor.action.sortLinesAscending` | +| ctrl+f9 | ctrl+f5 | Sort lines | `editor.action.sortLinesDescending` | +| ctrl+w | cmd+w | Close file | `workbench.files.action.closeFile` | +| ctrl+k ctrl+b | cmd+k cmd+b | Toggle sidebar | `workbench.action.toggleSidebarVisibility` | +| ctrl+shift+k | ctrl+shift+k | Delete Line | `editor.action.deleteLines` | +| ctrl+shift+up | cmd+shift+up | Move line up | `editor.action.moveLinesUpAction` | +| ctrl+shift+down | cmd+shift+down | Move line down | `editor.action.moveLinesDownAction` | +| ctrl+l | cmd+l | Select line (repeat for next lines) | `expandLineSelection` | +| ctrl+m | ctrl+m | Jump to bracket | `editor.action.jumpToBracket` | +| ctrl+shift+d | cmd+shift+d | Duplicate line | `editor.action.copyLinesDownAction` | +| ctrl+shift+/ | cmd+alt+/ | Block comment | `editor.action.blockComment` | +| ctrl+r and ctrl+; | cmd+r | Go to Symbol | `workbench.action.gotoSymbol` | +| alt+shift+2 and ctrl+k ctrl+up | alt+cmd+2 and cmd+k cmd+up | Split editor | `workbench.action.splitEditor` | +| ctrl+h| cmd+alt+f | Replace | `workbench.action.replaceInFiles` | +| ctrl+pagedown | shift+cmd+] and alt+cmd+right | Next Tab | `workbench.action.nextEditor` | +| ctrl+pageup | shift+cmd+[ and alt+cmd+left | Previous Tab | `workbench.action.previousEditor` | +| ctrl+up | ctrl+alt+up | Scroll line up | `scrollLineUp` | +| ctrl+down | ctrl+alt+down | Scroll line down | `scrollLineDown` | +| tab and shift+tab | tab and shift+tab | Tab | `tab` | +| ctrl+p | cmd+p and cmd+t | Quick open | `workbench.action.quickOpen` | +| f12 | f12 and cmd+alt+down | Go to declaration | `editor.action.goToDeclaration` | +| alt+- | ctrl+- | Navigate back | `workbench.action.navigateBack` | +| alt+shift+- | ctrl+shift+- | Navigate forward | `workbench.action.navigateForward` | +| f3 and f4 | cmd+g and f4 | Next find | `editor.action.nextMatchFindAction` | +| shift+f3 and shift+f4 | shift+cmd+g and shift+f4 | Previous find | `editor.action.previousMatchFindAction` | +| ctrl+/ and ctrl+shift+/ | cmd+/ and ctrl+cmd+down | Comment line | `editor.action.commentLine` | +| ctrl+k ctrl+down | cmd+k cmd+down | Close active editor | `workbench.action.closeActiveEditor` | +| ctrl+shift+[ | alt+cmd+[ | Fold | `editor.fold` | +| ctrl+shift+] | cmd+alt+] | Unfold | `editor.fold` | +| ctrl+k ctrl+0 and ctrl+k ctrl+j | cmd+k cmd+0 and cmd+k cmd+j | Fold all | `editor.unfoldAll` | +| context_menu | alt+f12 | Show context menu | `editor.action.showContextMenu` | +| ctrl++ | cmd++ | Increase font | `workbench.action.zoomIn` | +| ctrl+- | cmd+- | Decrease font | `workbench.action.zoomOut` | +| ctrl+alt+down / alt+shift+down | ctrl+shift+down | Vertical / Column Select down | `cursorColumnSelectDown` | +| ctrl+alt+up / alt+shift+up | ctrl+shift+up | Vertical / Column Select up | `cursorColumnSelectUp` | +| ctrl+alt+pageup / alt+shift+pageup | ctrl+shift+pageup | Vertical / Column Select page up | `cursorColumnSelectPageUp` | +| ctrl+alt+pagedown / alt+shift+pagedown | ctrl+shift+pagedown | Vertical / Column Select page down | `cursorColumnSelectPageDown` | +| ctrl+shift+l | cmd+shift+l | Split selection into lines | `editor.action.insertCursorAtEndOfEachLineSelected` | \ No newline at end of file diff --git a/README.md b/README.md index 4f40955..2ece763 100644 --- a/README.md +++ b/README.md @@ -4,48 +4,7 @@ This extension ports the most popular Sublime Text keyboard shortcuts to Visual ## What keyboard shortcuts are included? -| Windows / Linux | Mac | Description | VSC Command | -| --------------- | --- | ------- | ------------ | ----------- | -| f9 | f5 | Sort lines | `editor.action.sortLinesAscending` | -| ctrl+f9 | ctrl+f5 | Sort lines | `editor.action.sortLinesDescending` | -| ctrl+w | cmd+w | Close file | `workbench.files.action.closeFile` | -| ctrl+k ctrl+b | cmd+k cmd+b | Toggle sidebar | `workbench.action.toggleSidebarVisibility` | -| ctrl+shift+k | ctrl+shift+k | Delete Line | `editor.action.deleteLines` | -| ctrl+shift+up | cmd+shift+up | Move line up | `editor.action.moveLinesUpAction` | -| ctrl+shift+down | cmd+shift+down | Move line down | `editor.action.moveLinesDownAction` | -| ctrl+l | cmd+l | Select line (repeat for next lines) | `expandLineSelection` | -| ctrl+m | ctrl+m | Jump to bracket | `editor.action.jumpToBracket` | -| ctrl+shift+d | cmd+shift+d | Duplicate line | `editor.action.copyLinesDownAction` | -| ctrl+shift+/ | cmd+alt+/ | Block comment | `editor.action.blockComment` | -| ctrl+r and ctrl+; | cmd+r | Go to Symbol | `workbench.action.gotoSymbol` | -| alt+shift+2 and ctrl+k ctrl+up | alt+cmd+2 and cmd+k cmd+up | Split editor | `workbench.action.splitEditor` | -| ctrl+h| cmd+alt+f | Replace | `workbench.action.replaceInFiles` | -| ctrl+pagedown | shift+cmd+] and alt+cmd+right | Next Tab | `workbench.action.nextEditor` | -| ctrl+pageup | shift+cmd+[ and alt+cmd+left | Previous Tab | `workbench.action.previousEditor` | -| ctrl+up | ctrl+alt+up | Scroll line up | `scrollLineUp` | -| ctrl+down | ctrl+alt+down | Scroll line down | `scrollLineDown` | -| tab and shift+tab | tab and shift+tab | Tab | `tab` | -| ctrl+p | cmd+p and cmd+t | Quick open | `workbench.action.quickOpen` | -| f12 | f12 and cmd+alt+down | Go to declaration | `editor.action.goToDeclaration` | -| alt+- | ctrl+- | Navigate back | `workbench.action.navigateBack` | -| alt+shift+- | ctrl+shift+- | Navigate forward | `workbench.action.navigateForward` | -| f3 and f4 | cmd+g and f4 | Next find | `editor.action.nextMatchFindAction` | -| shift+f3 and shift+f4 | shift+cmd+g and shift+f4 | Previous find | `editor.action.previousMatchFindAction` | -| ctrl+/ and ctrl+shift+/ | cmd+/ and ctrl+cmd+down | Comment line | `editor.action.commentLine` | -| ctrl+k ctrl+down | cmd+k cmd+down | Close active editor | `workbench.action.closeActiveEditor` | -| ctrl+shift+[ | alt+cmd+[ | Fold | `editor.fold` | -| ctrl+shift+] | cmd+alt+] | Unfold | `editor.fold` | -| ctrl+k ctrl+0 and ctrl+k ctrl+j | cmd+k cmd+0 and cmd+k cmd+j | Fold all | `editor.unfoldAll` | -| context_menu | alt+f12 | Show context menu | `editor.action.showContextMenu` | -| ctrl++ | cmd++ | Increase font | `workbench.action.zoomIn` | -| ctrl+- | cmd+- | Decrease font | `workbench.action.zoomOut` | -| ctrl+alt+down / alt+shift+down | ctrl+shift+down | Vertical / Column Select down | `cursorColumnSelectDown` | -| ctrl+alt+up / alt+shift+up | ctrl+shift+up | Vertical / Column Select up | `cursorColumnSelectUp` | -| ctrl+alt+pageup / alt+shift+pageup | ctrl+shift+pageup | Vertical / Column Select page up | `cursorColumnSelectPageUp` | -| ctrl+alt+pagedown / alt+shift+pagedown | ctrl+shift+pagedown | Vertical / Column Select page down | `cursorColumnSelectPageDown` | -| ctrl+shift+l | cmd+shift+l | Split selection into lines | `editor.action.insertCursorAtEndOfEachLineSelected` | - -Additionally, you can see all of the keyboard shortcuts in the extension's details page in VS Code. +You can see all the keyboard shortcuts in the extension's contribution list. ![extension contributions](https://github.com/Microsoft/vscode-sublime-keybindings/blob/master/contributions_list.png?raw=true) @@ -53,6 +12,17 @@ Additionally, you can see all of the keyboard shortcuts in the extension's detai This is because VS Code has not implemented this feature. Head on over to this [GitHub issue](https://github.com/Microsoft/vscode/issues/3776) and let the VS Code team know what you'd like to see. +You can install an extension for many of these features: + +* [Join Lines](https://marketplace.visualstudio.com/items?itemName=wmaurer.join-lines) +* [Paste and Indent](https://marketplace.visualstudio.com/items?itemName=Rubymaniac.vscode-paste-and-indent) +* [FontSize Shortcuts](https://marketplace.visualstudio.com/items?itemName=peterjuras.fontsize-shortcuts) +* [Bracket Selection](https://marketplace.visualstudio.com/items?itemName=guosong.bracketselection) +* [change case](https://marketplace.visualstudio.com/items?itemName=wmaurer.change-case) +* [expand-region](https://marketplace.visualstudio.com/items?itemName=letrieu.expand-region) +* [transpose](https://marketplace.visualstudio.com/items?itemName=v4run.transpose) +* [Close HTML/XML tag](https://marketplace.visualstudio.com/items?itemName=Compulim.compulim-vscode-closetag) + ## How do I contribute a keyboard shortcut? We may have missed a keyboard shortcut. If we did please help us out! It is very easy to make a PR. @@ -74,15 +44,7 @@ We may have missed a keyboard shortcut. If we did please help us out! It is very You can read more about how to contribute keybindings in extensions in the [official documentation](http://code.visualstudio.com/docs/extensionAPI/extension-points#_contributeskeybindings). -## Releases -1.5.0 - New keybindings and nit fixes per [@bhancock8](https://github.com/bhancock8) - -1.4.0 - Added Windows / Linux key bindings and a number of missing commands. Updated the README. - -1.3.0 - Improved README - -1.2.0 - Fixes a number of keybinding changes with [PR #9](https://github.com/Microsoft/vscode-sublime-keybindings/pull/9) and [PR #12](https://github.com/Microsoft/vscode-sublime-keybindings/pull/12) (credit to [securingsincity](https://github.com/Microsoft/vscode-sublime-keybindings/issues?q=is%3Apr+author%3Asecuringsincity) and [benmosher](https://github.com/Microsoft/vscode-sublime-keybindings/issues?q=is%3Apr+author%3Abenmosher)). ## License [MIT](license.txt) diff --git a/package.json b/package.json index 3229d8f..7baeff1 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "sublime-keybindings", "displayName": "Sublime Text Keymap", "description": "Popular Sublime keybindings for VS Code.", - "version": "1.5.1", + "version": "1.5.2", "publisher": "ms-vscode", "engines": { "vscode": "^1.6.0" @@ -62,7 +62,7 @@ "command": "workbench.action.files.saveAll" }, { - "mac": "cmd+k cmd+b", + "mac": "cmd+k cmd+b",- "win": "ctrl+k ctrl+b", "linux": "ctrl+k ctrl+b", "key": "ctrl+k ctrl+b", @@ -316,6 +316,69 @@ "key": "ctrl+shift+l", "command": "editor.action.insertCursorAtEndOfEachLineSelected", "when": "editorTextFocus" + }, + { + "mac": "cmd+1", + "win": "alt+1", + "linux": "alt+1", + "key": "alt+1", + "command": "workbench.action.openEditorAtIndex1" + }, + { + "mac": "cmd+2", + "win": "alt+2", + "linux": "alt+2", + "key": "alt+2", + "command": "workbench.action.openEditorAtIndex2" + }, + { + "mac": "cmd+3", + "win": "alt+3", + "linux": "alt+3", + "key": "alt+3", + "command": "workbench.action.openEditorAtIndex3" + }, + { + "mac": "cmd+4", + "win": "alt+4", + "linux": "alt+4", + "key": "alt+4", + "command": "workbench.action.openEditorAtIndex4" + }, + { + "mac": "cmd+5", + "win": "alt+5", + "linux": "alt+5", + "key": "alt+5", + "command": "workbench.action.openEditorAtIndex5" + }, + { + "mac": "cmd+6", + "win": "alt+6", + "linux": "alt+6", + "key": "alt+6", + "command": "workbench.action.openEditorAtIndex6" + }, + { + "mac": "cmd+7", + "win": "alt+7", + "linux": "alt+7", + "key": "alt+7", + "command": "workbench.action.openEditorAtIndex7" + }, + { + "mac": "cmd+8", + "win": "alt+8", + "linux": "alt+8", + "key": "alt+8", + "command": "workbench.action.openEditorAtIndex8" + }, + { + "mac": "cmd+9", + "win": "alt+9", + "linux": "alt+9", + "key": "alt+9", + "command": "workbench.action.openEditorAtIndex9" } ] },