vscode-ibmi icon indicating copy to clipboard operation
vscode-ibmi copied to clipboard

Menu item for running actions

Open worksofliam opened this issue 3 years ago • 6 comments

  • menus:
  • "editor/title": [

worksofliam avatar Jun 03 '22 14:06 worksofliam

Better : "Button Menu for running actions" ?

openmax avatar Jun 03 '22 15:06 openmax

@openmax I'd be curious to hear what your ideas are to improve the actions workflow.

worksofliam avatar Jun 07 '22 18:06 worksofliam

as starting point i'd like this extension for vscode -> https://marketplace.visualstudio.com/items?itemName=jerrygoyal.shortcut-menu-bar
and relative github -> https://github.com/GorvGoyl/Shortcut-Menu-Bar-VSCode-Extension

where you can configure fixes button 1 to 9 to your prefered actions .. and there are already button for "save" , "undo", "cut" , "copy" etc etc

as evolution where we have multiple choise for ctrl-e , maybe we can have a button that open a submenu ( or sub-button ) , like in then microsoft ribbon of office ..

here some already asked example on vscode : https://github.com/microsoft/vscode/issues/41309

openmax avatar Jun 07 '22 18:06 openmax

Sadly it's not possible to dynamically add to those icons. While it would be neat, there is no pretty way to go about it right now.

worksofliam avatar Jun 07 '22 19:06 worksofliam

@openmax I think our 'runAction' command needs to let you pass in a parm so you can click the button and it will search for the action.

For example, for that extension:

  • code-for-ibmi.runAction|CRTBNDRPG
  • code-for-ibmi.runAction|CRTSRVPGM

then it would search and use the first action to match the type, extension, and name provided in the argument.

What do you think?

worksofliam avatar Jun 07 '22 22:06 worksofliam

@worksofliam that is a good idea , so i can put in the button configuration comand parameter to solve particulary compile need , like RPGPPOPT(*LVL2) , TGTRLS(V7R2M0) or ALWNULL(*USRCTL) ..., and have more button for the same COMMAND but with the option i want ..

openmax avatar Jun 08 '22 10:06 openmax

Sadly it's not possible to dynamically add to those icons. While it would be neat, there is no pretty way to go about it right now.

Closing because this is still the same problem.

worksofliam avatar Nov 19 '22 04:11 worksofliam