Komodo / KomodoEdit

Komodo Edit is a fast and free multi-language code editor. Written in JS, Python, C++ and based on the Mozilla platform.
http://www.komodoide.com/komodo-edit
Other
2.14k stars 299 forks source link

List of doCommands not available #3875

Open jshrek opened 4 years ago

jshrek commented 4 years ago

List of doCommands no longer available (blank page).

Go here and see that no doCommands are listed: http://docs.komodoide.com/SDK/commandid

Did much googling but this was the only link I could find related to doCommands for Komodo Edit userscripts.

*Komodo Edit v12.0.1 on Windows 10

th3coop commented 4 years ago

Well that's annoying. For now here's some code that could allow you to print this info for yourself from a Userscript: https://github.com/komodo/KomodoEdit/blob/master/src/modules/scope_commands/content/commands.js#L22

Note that legacy in that context is ko. So you could write something along the lines of this UNTESTED sample

if (!ko.keybindings.manager.commanditems)
{
    // Load the keybinding description information.
    ko.keybindings.manager.parseGlobalData();
}

var commanditems = ko.keybindings.manager.commanditems;
for (var i=0; i < commanditems.length; i++)
{
    console.log("id: "+commanditems[i].name)
    console.log("description: "+commanditems[i].desc)
}