Page 1 of 1

plot the “code tree” and “project” at same time

Posted: 29.11.2023 08:19
by SamC
Hello,
Is it possible to adjust the layout of the main window to see the “code tree side bar” and “project side bar” at same time?
Thanks!

Re: plot the “code tree” and “project” at same time

Posted: 29.11.2023 08:27
by main Alexey
Currently no, and it's not planned, sorry.

Re: plot the “code tree” and “project” at same time

Posted: 29.11.2023 09:35
by main Alexey
but in theory,this can be added. later. if several users will want it.

Re: plot the “code tree” and “project” at same time

Posted: 29.11.2023 20:44
by miro.matas
not so bad idea… I will vote for that
but - if it is not soooooo complicated…

Re: plot the “code tree” and “project” at same time

Posted: 16.12.2023 05:19
by SamC
Is there an API to detected if the codetree-view/project-panel is focused and set it tobe focused?
I want to write a simple plugin to use F2 button to quick switch the focus view.
Thanks!

Re: plot the “code tree” and “project” at same time

Posted: 16.12.2023 05:54
by main Alexey
1. Getting what is focused: no API yet. will think how to add.
ed.get_prop(PROP_FOCUSED,'') - allows to check is editor focused

2. Setting focus: ed.cmd() API with these IDs from cudatext_cmd.py

cmd_ShowPanelConsole_AndFocus
cmd_ShowPanelOutput_AndFocus
cmd_ShowPanelValidate_AndFocus
cmd_ToggleFindDialog_AndFocus
cmd_ToggleFocusSplitEditors
cmd_FocusEditor
cmd_FocusNotificationPanel
cmd_TreeFilterFocus
cmd_TreeFocus

Re: plot the “code tree” and “project” at same time

Posted: 16.12.2023 08:14
by SamC
Thanks!
Will the api app_proc(PROC_SIDEPANEL_ACTIVATE, ('..', True)) do the same thing?
What's the difference between app_proc to c*m*d_xx ?

Re: plot the “code tree” and “project” at same time

Posted: 16.12.2023 09:02
by main Alexey
c*m*d_xx are for built-in panels.
PROC_SIDEPANEL_ACTIVATE is for plugins (which have the side-panel). ie for Project Manager, for FTP.
it can also be used with code-tree, though.