KomodoEdit icon indicating copy to clipboard operation
KomodoEdit copied to clipboard

List of doCommands not available

Open jshrek opened this issue 5 years ago • 1 comments

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

jshrek avatar May 27 '20 04:05 jshrek

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)
}

th3coop avatar Jun 01 '20 22:06 th3coop