Created
March 8, 2012 20:55
-
-
Save studgeek/2003390 to your computer and use it in GitHub Desktop.
keyconfig script for opening the current Firebug file in your first default editor at the current centered line
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// See my comments in http://code.google.com/p/fbug/issues/detail?id=4731 | |
(function () { | |
var myFirebug = window.Firebug; | |
if (!myFirebug) { | |
var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"] | |
.getService(Components.interfaces.nsIWindowMediator); | |
var mainWindow = wm.getMostRecentWindow("navigator:browser"); | |
myFirebug = mainWindow.Firebug; | |
} | |
myFirebug.ExternalEditors.openContext(myFirebug.currentContext, 0); | |
}()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See my comments in http://code.google.com/p/fbug/issues/detail?id=4731