Hi. I start developing a komodo extension. At now
i work with gui. I need to past a menupopup into Tools
(menupopup#popup_tools). How i can made this?
I try to paste something like this:
<menupopup id="menu_myskin">
<menuitem id="menu_myskin" label="RGB to BGR" class="menu-iconic-wide" observes="RGB:BGRTORGB"/>
</menupopup>
Into menupopup#popup_tools, but it’s not give me a result.
Assuming this is an overlay yo uneed to ensure that the root element matches the ID of the element that you are trying to overlay (extend), eg. <menupopup id="popup_tools">.
Hi. How I can add a keybind for my command? E.g. Ctrl+Shift+/ calls my function myobject.myfunc('myarg');
And of course I want that user can change keybind from Preferences - Key bindings (for this I think I must override pref-ui.xul with my custom pref-ui.xul)
That’s not an ideal approach as it would be invoking your code every time someone presses a key regardless fo whether it is the keys you are looking for. However I don’t believe there is a simple way to create keybindings in a macro at the moment, though this will be available in Komodo 9.
It’s not a macro. It’s a normal extension with custom xuls, styles and javascript files.
Anyway, I create a special menu with special button that enable/disable keybindings
I think ko.dialogs.selectFromList() it’s what I need. I try this, thanks.
But where I can get information about ko.dialogs.selectFromList()?
Also this function generate a popup like code-autocomplite?
Uh, I’m check this function and it’s not that I want.
Note I believe all the macros covered on the third link are already on the Resources section.
The second like (recipes) is technically not deprecated yet but I wouldn’t exactly call it maintained. If you want to submit macros I’d strongly urge to use the Resources section.