Adding menu commands to a custom toolbar


#1

Dear All,

I am on Komodo 11.1 and I think I am trying to do something very simple: I want the Save As command to be available in the toolbar. I went to ToolBox, added a new Toolbar and I am now trying to figure out how to add the menu command Save As to that toolbar. I tried all the options from the context menus but got nowhere, could someone please provide a pointer to what I should be doing?

Regards,
George


#2

@gkl, from the context menu of the Toolbar item you’ll want to add a Userscript that will have the code to Save As. Have you tried that?

I believe the following should suffice for the code in the Userscript:
ko.commands.doCommandAsync('cmd_saveAs')

Once you’ve added the Userscript it should appear in your toolbar.

Here’s what mine looks like:
Capture

  • Carey