Skip to content

Instantly share code, notes, and snippets.

@studgeek
Created March 8, 2012 20:55
Show Gist options
  • Save studgeek/2003390 to your computer and use it in GitHub Desktop.
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
// 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);
}())
@studgeek
Copy link
Author

studgeek commented Mar 8, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment