Page 2 of 4

Posted: 14.08.2019 22:23
by sl23
Alexey wrote:all needed commands are present in Cmd Palette.
- show side panel/ code tree
- hide side panel
- dialog: find
- hide dialog: find
- toggle find/replace dialog
you can add them in ConfigToolbar
Thanks for the tips.
I already have a button for Toggle Code Tree.
I'm not really likely to use the side panel if I can find the buttons on it for use on the main Toolbar via ConfigToolbar.
Could you add a button to Toggle Find please. Otherwise two buttons are required. Would be better to just Toggle, don't you think?

Almost every time I run the ConfigToolbar plugin, I get bad icon placement or display, freezes or crashes.

Posted: 15.08.2019 19:49
by Alexey
i need the repro. pls, attach the folder "cudatext/settings" in zip file.
https://wiki.freepascal.org/CudaText#Lo ... data_files

Posted: 15.08.2019 19:52
by Alexey

Posted: 15.08.2019 21:36
by sl23
Thank you Alexey.
Here's my settings.zip:
Uh, maybe not!
The extension zip is not allowed.
RAR file ok?
settings.rar
(8.63 KiB) Downloaded 99 times

Posted: 20.08.2019 07:58
by Alexey
>Could you add a button to Toggle Find please. Otherwise two buttons are required.

already mentioned command: "ui: toggle find/replace dialog". it toggles find dialog show/hide.

Posted: 21.08.2019 00:41
by sl23
This works ok. But look at my Toolbar now that I have added the button with the icon...
Find button is on the far right.
Find button is on the far right.
2019-08-21 01_33_59-Window.png (7.52 KiB) Viewed 1906 times
Also, I'm sure the Code Tree button was a toggle one, would you verify this please.
It's command number is 2547.
It won't toggle anymore, just opens the tree, but I could've sworn it toggled it?

Thank you Alexey.

EDIT: How can I edit the first three user buttons for Toggle Minimap, Line Comment and Options Dialogue?

Posted: 31.08.2019 06:44
by Alexey
sorry, i cannot understand how to repeat the ConfigToolbar bug. can you write steps? how to repeat it?

Posted: 31.08.2019 06:48
by Alexey
>>Also, I'm sure the Code Tree button was a toggle one, would you verify this please.

we have several commands. one does the toggle.
cmd_ToggleSidePanel = 2533
cmd_ShowSidePanelAsIs = 2546
cmd_ShowSidePanelAndSyntaxTree = 2547
cmd_HideSidePanel = 2548

you cannot edit default buttons on toolbar. but you can hide them (use Plugins/ Config Toolbar/ Hide std buttons...)

Posted: 02.09.2019 20:11
by sl23
Ah ok, maybe I thought it was a toggle button for the code tree.
Could we please have one?
It does seem strange that if you hide the Sidebar, you can show things whose buttons are on the sidebar, but not hide them.

Posted: 05.09.2019 05:32
by Alexey
To add the /toggle side panel/ button on the toolbar, just add a new button with command code
cmd_ToggleSidePanel = 2533