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.
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);
}
|
Great script!!
Would be fabulous to have the box height as a preference though.
Since Komodo 7 this method no longer works. Apparently, the new auto-complete widget is now XUL based (rather than Scintilla based).
Right - Komodo 7 changed to use a XUL implemented completion widget, so it uses different settings - I've updated the macro accordingly.