Move Sidebar buttons + other

sl23
Posts: 161
Joined: 29.01.2013 10:04

Post 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.
Live for an ideal and leave no place in the mind for anything else.
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

i need the repro. pls, attach the folder "cudatext/settings" in zip file.
https://wiki.freepascal.org/CudaText#Lo ... data_files
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

sl23
Posts: 161
Joined: 29.01.2013 10:04

Post 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
Live for an ideal and leave no place in the mind for anything else.
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

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

Post 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 1910 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?
Live for an ideal and leave no place in the mind for anything else.
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

sorry, i cannot understand how to repeat the ConfigToolbar bug. can you write steps? how to repeat it?
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

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

Post 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.
Live for an ideal and leave no place in the mind for anything else.
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

To add the /toggle side panel/ button on the toolbar, just add a new button with command code
cmd_ToggleSidePanel = 2533
Post Reply