Config Toolbar: "Recent files" button

Plugins for SynWrite and CudaText...
Post Reply
sl23
Posts: 161
Joined: 29.01.2013 10:04

Config Toolbar: "Recent files" button

Post 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
Live for an ideal and leave no place in the mind for anything else.
main Alexey
Posts: 2265
Joined: 25.08.2021 18:15

Post 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'.
sl23
Posts: 161
Joined: 29.01.2013 10:04

Post 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.
Live for an ideal and leave no place in the mind for anything else.
main Alexey
Posts: 2265
Joined: 25.08.2021 18:15

Post by main Alexey »

Currently we miss such a command. I wrote it to todo. currently you can use command-palette with text #r.
main Alexey
Posts: 2265
Joined: 25.08.2021 18:15

Post by main Alexey »

Ops, plugin CudaExt has this command, it shows menu-dlg with recent filenames! No need to add to Cud.
sl23
Posts: 161
Joined: 29.01.2013 10:04

Post 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.
Live for an ideal and leave no place in the mind for anything else.
main Alexey
Posts: 2265
Joined: 25.08.2021 18:15

Post 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"
main Alexey
Posts: 2265
Joined: 25.08.2021 18:15

Post by main Alexey »

Picture helps?
Attachments
Screenshot from 2021-11-07 00-52-06.png
sl23
Posts: 161
Joined: 29.01.2013 10:04

Post by sl23 »

I had to install the plugin for that, but it works now, thank you. :D
Live for an ideal and leave no place in the mind for anything else.
Post Reply