Skip to content

Commit

Permalink
Change hotkey to ensure compatibility with Brackets 1.3
Browse files Browse the repository at this point in the history
The previous hotkey used by this extension - CMD/CTRL-ALT-] - is now used by Brackets. This change switches the default hotkey to be CMD/CTRL-ALT-RIGHT ARROW.
  • Loading branch information
davidwaterston committed Apr 23, 2015
1 parent d4f6cfc commit b77696f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
## 'Go to Matching Bracket' in Brackets editor

<a href="http://semver.org" target="_blank" alt="Semantic Versioning"><img src="https://img.shields.io/badge/semver-1.7.0-lightgrey.svg?style=flat-square"></a>
<a href="http://semver.org" target="_blank" alt="Semantic Versioning"><img src="https://img.shields.io/badge/semver-2.0.0-lightgrey.svg?style=flat-square"></a>
<a href="https://github.com/davidwaterston/goto-matching-bracket/blob/master/LICENSE" target="_blank" alt="MIT License"><img src="http://img.shields.io/badge/license-MIT-blue.svg?style=flat-square"></a>
<a href="#verifying-releases" alt="Releases signed with Gnu Privacy Guard"><img src="https://img.shields.io/badge/gpg-signed-green.svg?style=flat-square"></a>
<a href="https://gitter.im/davidwaterston/goto-matching-bracket" target="_blank" alt="Join the chat at https://gitter.im/davidwaterston/goto-matching-bracket"><img src="https://badges.gitter.im/Join%20Chat.svg"></a>

A [Brackets](http://brackets.io/) extension to instantly locate and place the cursor on the matching bracket to the one under the cursor. Adds an entry called _Go to Matching Bracket_ to the _Navigate_ menu with a shortcut of Command-Alt-] (Mac) or Ctrl-Alt-] (Windows).
A [Brackets](http://brackets.io/) extension to instantly locate and place the cursor on the matching bracket to the one under the cursor. Adds an entry called _Go to Matching Bracket_ to the _Navigate_ menu with a shortcut of Command-Alt-&#8594; (Mac) or Ctrl-Alt-&#8594; (Windows). **Note that this shortcut was changed in version 2.0.0 as release 1.3 of Brackets now uses the original shortcut for _Expand Current_**.

The 'brackets' characters that are matched are (, ), {, }, [ and ].

<img src="https://dvolvr.files.wordpress.com/2015/03/matchingbrackets1.gif" width="800" alt="Brackets Goto Matching Bracket in action" />
<img src="https://dvolvr.files.wordpress.com/2015/04/goto-matching-bracket-v2.gif" width="800" alt="Brackets Goto Matching Bracket in action" />


## Install
Expand Down Expand Up @@ -82,7 +82,7 @@ Lastly, if the _maxScanLineLength_ preference is set too low then some lines in
A: It can be difficult to choose a hotkey for an extension. While it's easy enough to avoid the keys assigned by Brackets itself, it's impossible to know what other extensions may be using (or even what external apps might be listening for). If you find that the default key combination (CMD-ALT-] / CTRL-ALT-]) is not suitable you can override my choice by editing your _User Key Map_ file. This is done using the _Debug_... _Open User Key Map_ menu item and adding in a new entry like this in the _overrides_ section:

```
"Cmd-Shift-Z": "davidwaterston.goto-matching-bracket"
"Cmd-Shift-Z": "davidwaterston.goto-matching-bracket.findMatch"
```

where you would replace the _Cmd-Shift-Z_ with your preferred key combination.
Expand All @@ -98,6 +98,7 @@ A: That's not really a question but, if you think one of the translations is wro
## Release History
| Date | Version | Summary of Change |
| :--- | :------ | :---------------- |
| 2015/04/23 | v2.0.0 | Breaking change: With the release of Brackets 1.3 the original keyboard shortcut used by this extension - Command-Alt-] (Mac) or Ctrl-Alt-] (Windows) - has been taken by the Brackets _Expand Current_ command. This release changes the default shortcut and confirms the extension continues to work in v1.3 |
| 2015/04/06 | v1.7.0 | Added new preference setting, _enabled_, which allows the extension to temporarily be turned off. |
| 2015/03/31 | v1.6.0 | Added .editorconfig, to ensure consistency of whitespace across different editors and IDEs. |
| 2015/03/29 | v1.5.0 | Documentation update. Added a License file and badges to the README.md to indicate the version number, the license type and that the releases are signed using Gnu Privacy Guard (GPG). I also added info about how to verify the signatures on releases/tags. In previous releases I have only increased the version number when there has been functional (no-documentation) changes made to the repo but from now on I will bump the version up even if only documentation has changed. |
Expand Down
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ define(function (require) {
var menu = Menus.getMenu(Menus.AppMenuBar.NAVIGATE_MENU);
menu.addMenuItem(
COMMAND_ID,
"Ctrl-Alt-]",
"Ctrl-Alt-Right",
Menus.LAST_IN_SECTION,
Menus.MenuSection.NAVIGATE_GOTO_COMMANDS
);
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "davidwaterston.goto-matching-bracket",
"title": "Go to Matching Bracket",
"description": "Instantly locate and place the cursor on the matching bracket to the one under the cursor. Simply place the cursor on any one of {, }, (, ), [ or ] then press CTRL-ALT-] (CMD-ALT-] on Mac) or use the 'Navigate... Go to Matching Bracket' menu item to locate and place the cursor on the matching opening or closing bracket.",
"description": "Instantly locate and place the cursor on the matching bracket to the one under the cursor. Simply place the cursor on any one of {, }, (, ), [ or ] then press CTRL-ALT-RIGHT (CMD-ALT-RIGHT on Mac) or use the 'Navigate... Go to Matching Bracket' menu item to locate and place the cursor on the matching opening or closing bracket. NOTE: v2.0.0 changes the hotkey for compatibility with Brackets 1.3.",
"homepage": "https://github.com/davidwaterston/goto-matching-bracket",
"version": "1.7.0",
"version": "2.0.0",
"author": "David Waterston",
"license": "MIT",
"i18n": [
Expand Down

0 comments on commit b77696f

Please sign in to comment.