October 22, 2014, ,

Multi-row Editor Tabs for Komodo

The Macro

This is a JavaScript macro (best to set the macro to trigger on the Komodo
startup event) that wraps your editor tabs into multiple rows, making all the
tabs visible at once:



Here’s what is looks like with multiple tab rows:

Developer Notes

The JavaScript code that finds the correct UI elements is a little ugly – but it
shows some interesting techniques for accessing the anonymous DOM nodes (XBL) in
Komodo’s UI. XBL is an algamation of multiple UI elements, but it condenses
(hides) these elements so it just behaves like one individual DOM node.

Note that it’s actually a lot simpler to implement this directly using CSS
(using Stylish or userChrome.css) with the following rules:

/* Make the editor scroll tabs wrap around. */
#topview .arrowscrollbox-scrollbox {
overflow: visible;
#topview .arrowscrollbox-scrollbox > box {
display: inline-block;


To install the macro simply hit the “View Resource” and “Install Instructions” links below.

Once installed – invoke the macro on demand or set the macro to run on the
Komodo startup event.

Related Materials

  • Komodo Developer Extension – play around with JavaScript or Python code in the context of the Komodo window
  • Komodo Macro API – to programatically interact with the Komodo editor-available to both Python and JavaScript
  • Editor API – the Komodo editor provides a wrapper around the Scintilla
Todd Whiteman

Todd Whiteman

Todd Whiteman is the Development Lead for Komodo IDE. He works adeptly with Mozilla, Python and JavaScript to ensure that Komodo IDE is the IDE of choice for development teams. Todd has been working on Komodo IDE for nearly 6 years, adding components such as the Vi Key Bindings, Distributed Source Code Control, 64-bit Linux builds as well as Remote SSH support into Komodo IDE.