plugin Configure Menu

Plugins for SynWrite and CudaText...
Stefan
Posts: 112
Joined: 06.10.2012 15:06

Post by Stefan »

Wish I had kept notes of what exactly went wrong. The Macros menu was part of it, you are right. Maybe I misread the instructions. I was under the impression that although it cannot be changed, it could still be left out altogether. That did not work. But I also had problems with the Selection menu. It would revert to a mix of default and custom settings.

Captions too. Try this: Remove the extra spaces after each main menu entry. When you click "Apply Now", the menu will shorten, the items will move closer together as intended. However, on your next startup, the default captions with empty spaces will be back.

What finally threw me off, was the wrong hotkey issue.

Perhaps I gave up too soon. Your mileage may vary, what bothered me, may not concern you at all. I encourage you to give it a try.

Btw, just like you, I am very much keyboard oriented. No time to reach for the mouse when I am hacking away at the speed of thought.

Which is exactly why I use the context menu. Hitting the right Win-key pops it up, then I press the underlined &-accelerators keys I have assigned. In rapid succession. It works for me, this mix of hotkeys and context menu fly-outs with accelerators.

Guess, we all develop our routines. Forever chasing the optimal workflow. ;)
main Alexey
Posts: 2323
Joined: 25.08.2021 18:15

Post by main Alexey »

special submenus:
- Macros: forced by Macros plugin (if you don';t hack the plugin, it's forced to show)
- Tools: forced by External Tools plg
- Open recent: not forced, can be removed by you
- Plugins: not forced too (AFAIR, not sure)
main Alexey
Posts: 2323
Joined: 25.08.2021 18:15

Post by main Alexey »

hey guys;
I updated the beta http://uvviewsoft.com/c/
it now has special handling of ConfigMenu top menu! it shows hotkeys! pls test.
Stefan, pls check again your case with ConfigToolbar plug - still ok?
Stefan
Posts: 112
Joined: 06.10.2012 15:06

Post by Stefan »

I did not run an in -depth check, but on first glance everything looks fine to me. Customized hotkeys are shown correctly in the menu, no regression of any kind as far as I can tell.

I am giving it the green light. No objections from my side. :D
qwerky
Posts: 172
Joined: 21.10.2013 00:58

Post by qwerky »

Thanks, Alexey, this is great! I don't recall another editor that allows to customize the menus.

So, just a quick first test: the hotkeys are being displayed in most of the menus, but not in the Edit menu and the Selection menu? I have no idea why that may be?

Also, in Edit menu, no items (Cut, Copy, etc.) are greyed out, even when there is no selection. Normally, they would be greyed out until a selection was made.

For:

strings "module,method" for any plugin module and method in it.

what is the name of the project manager module? Or, in general, how does one find the name of a given module, which is to be used for "module" in the menus?
main Alexey
Posts: 2323
Joined: 25.08.2021 18:15

Post by main Alexey »

> the hotkeys are being displayed in most of the menus, but not in the Edit menu and the Selection menu? I have no idea why that may be?
it is the limitation - also in API function - see in the 'API wiki':
MENU_SET_AUTO_HOTKEY: Sets the hotkey of menu item according to this item's command code (which must be already set). It skips some special commands: "Clipboard copy", "Clipboard paste", "Clipboard cut", "Select all", "Undo", "Redo" (because for example Ctrl+C hotkey in the top menu overrides the Ctrl+C pressing in the Console / Code-Tree filter / docked plugin dialogs). And it skips some special hotkeys: Esc, Shift+Tab.

> in Edit menu, no items (Cut, Copy, etc.) are greyed out, even when there is no selection. Normally, they would be greyed out until a selection was made.
it's not implemented. coz it may slow down the work a little.
main Alexey
Posts: 2323
Joined: 25.08.2021 18:15

Post by main Alexey »

Haha, "Copy" and "Cut" may work even without selection! they take the current line then. (by option)

what is the name of the project manager module? Or, in general, how does one find the name of a given module, which is to be used for "module" in the menus?
User must see it himself - by going into folder "py".
https://wiki.freepascal.org/CudaText#Lo ... .27data.27
qwerky
Posts: 172
Joined: 21.10.2013 00:58

Post by qwerky »

So, you're saying it is the name of the directory, for example for the project manager, the name would be cuda_project_man? That would be the name of the module to use in "module,method"? I haven't been able to get that to work.

Hmm... couldn't make it work yesterday, but today it is working, at least for method "menu_recents"; must have been user error. :oops:
main Alexey
Posts: 2323
Joined: 25.08.2021 18:15

Post by main Alexey »

>it is the name of the directory, for example for the project manager, the name would be cuda_project_man?
yes.

names of methods - are located in the install.inf in plugin dir.
qwerky
Posts: 172
Joined: 21.10.2013 00:58

Post by qwerky »

Thank you! Just getting started with experimenting with menus, and have a couple of them working already.
Post Reply