Closed Bug 886474 Opened 11 years ago Closed 11 years ago

Stop using Ctrl + ] [ to match brackets in source editor

Categories

(DevTools :: Source Editor, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 25

People

(Reporter: Optimizer, Assigned: Optimizer)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

When you are in Debugger or Style Editor, Ctrl + ] and Ctrl + [ are used to match brackets, due to which we cannot use those shortcuts to switch tools as we want in bug 879219.

After discussing on IRC with Victor and Mihai, we came up with a consensus to change the source-editor's shortcuts. The most favorable shortcut is Ctrl + M and Ctrl + Shift + M. But if we are not happy with that, we can do Ctrl + Alt + ] [ .
Oh, I forgot to mention why Ctrl + M is favorable: because its used by Sublime Text
Ctrl+Alt+[/]
Attached patch patch v0.1 (obsolete) — Splinter Review
Attachment #767925 - Flags: review?(mihai.sucan)
Comment on attachment 767925 [details] [diff] [review]
patch v0.1

Thanks! r+ with green try push.
Attachment #767925 - Flags: review?(mihai.sucan) → review+
green try : https://tbpl.mozilla.org/?tree=Try&rev=b044fa5da599
Whiteboard: [land-in-fx-team]
Landed : https://hg.mozilla.org/integration/fx-team/rev/4cdab5388392
Whiteboard: [land-in-fx-team] → [fixed-in-fx-team]
Trying to use Ctrl+Alt+[/] doesn't seem to have any effect, but Ctrl+Shift+[/] works. Inspecting the patch confirms that. The problem with that however, is that on OS X at least, this shortcut conflicts with the shortcut to switch tabs, which makes bracket matching only work in a detached toolbox.

Let's either use the agreed upon shortcut or use a different one on OS X.
Whoops. Fix coming.
Attached patch correct patchSplinter Review
Correct patch. going through try
Attachment #767925 - Attachment is obsolete: true
Attachment #770122 - Flags: review?(mihai.sucan)
Attachment #770122 - Flags: review?(mihai.sucan) → review+
https://hg.mozilla.org/mozilla-central/rev/4cdab5388392
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 25
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: