Page 1 of 1

Config Toolbar: "Recent files" button

Posted: 06.11.2021 14:32
by sl23
I wanted to create a sub menu item for the Toolbar but cannot find the ID command for this function.
Does it exist? If not, could it be added please?
Thank you :D

Posted: 06.11.2021 15:08
by main Alexey
The 'config toolbar' plugin dialog - shows 2 buttons: 'add item' and 'add sub-menu'. press the latter. it will create empty item, eg 'dd'. then in the same dialog, press "edit sub-menu' which is now enabled for focused menu-item 'dd'.

Posted: 06.11.2021 15:19
by sl23
Thanks Alexey, I know about the sub menu's, I have created one. But the issue is that I cannot find the command ID for the Recent Items. Does it exist?

I used 'File', 'Recent' and 'History' in the filter, but nothing came up for Recent Files History.

Posted: 06.11.2021 16:12
by main Alexey
Currently we miss such a command. I wrote it to todo. currently you can use command-palette with text #r.

Posted: 06.11.2021 16:23
by main Alexey
Ops, plugin CudaExt has this command, it shows menu-dlg with recent filenames! No need to add to Cud.

Posted: 06.11.2021 21:33
by sl23
main Alexey wrote: currently you can use command-palette with text #r.
Can I use this in a button? How do I do that?

I tried adding it in the Toolbar Config window via the 'Enter Command Line' button, but it doesn't open the Recents dialogue.

Posted: 06.11.2021 21:50
by main Alexey
Yes, you can - in the "Choose command" button's dialog, ie command-palette, find the command
"plugin: Cuda-Ext: File: Open recent file..."
This will enter the result
"cuda_ext.open_recent"

Posted: 07.11.2021 06:37
by main Alexey
Picture helps?

Posted: 07.11.2021 12:21
by sl23
I had to install the plugin for that, but it works now, thank you. :D