Welcome, guest | Sign In | My Account | Store | Cart

A Komodo JavaScript macro that can be used to set the number of code completion items shown in the list.

If you set the macro to Trigger on the Komodo "After file open" event - then this setting will be always be applied to every file code completion list.

JavaScript, 11 lines
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
// For Komodo 6
if (ko.views.manager.currentView &&
    ko.views.manager.currentView.scimoz) {
    // Set the number of completions shown in the list.
    ko.views.manager.currentView.scimoz.autoCMaxHeight = 10;
}

// For Komodo 7
if (ko.prefs) {
  ko.prefs.setLongPref("codeintel_autocomplete_max_rows", 10);
}

3 comments

Dave Stewart 13 years, 9 months ago  # | flag

Great script!!

Would be fabulous to have the box height as a preference though.

Álvaro G. Vicario 12 years, 1 month ago  # | flag

Since Komodo 7 this method no longer works. Apparently, the new auto-complete widget is now XUL based (rather than Scintilla based).

Todd Whiteman (author) 12 years, 1 month ago  # | flag

Right - Komodo 7 changed to use a XUL implemented completion widget, so it uses different settings - I've updated the macro accordingly.