code tree default folding level

SamC
Posts: 207
Joined: 12.08.2023 00:49

Re: code tree default folding level

Post by SamC »

main Alexey wrote: 22.12.2023 09:42 Option "ui_tree_unfold" will be added to 1.206 release.
When using code tree to locate the context,if the node is with subnode double click will toggle fold/unfold this tree branch,is it possible to set it to just locate the caret(may be when ctrl is pressed,it means locate only?)
Thanks.
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Re: code tree default folding level

Post by main Alexey »

how can I 'locate the caret'? I don't understand. do you mean you want to place caret onto the dbl-clicked tree node?
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Re: code tree default folding level

Post by main Alexey »

I got it. you need to NOT fold/unfold on dbl-click. okay, done, wait for update.
mix-7
Posts: 741
Joined: 11.05.2018 11:02

Re: code tree default folding level

Post by mix-7 »

SamC wrote: 23.12.2023 14:07 ...
This time there is a blue block at the left side of the bottom bar, what's that mean? Thanks!
2023-12-232.png
Perhaps plugin Clipboard Catcher
See the log in the Statusbar and in the Console
SamC
Posts: 207
Joined: 12.08.2023 00:49

Re: code tree default folding level

Post by SamC »

mix-7 wrote: 25.01.2024 09:42
SamC wrote: 23.12.2023 14:07 ...
This time there is a blue block at the left side of the bottom bar, what's that mean? Thanks!
2023-12-232.png
Perhaps plugin Clipboard Catcher
See the log in the Statusbar and in the Console
It disappeared after restart,thanks for the advise for checking~
SamC
Posts: 207
Joined: 12.08.2023 00:49

Re: code tree default folding level

Post by SamC »

main Alexey wrote: 22.12.2023 09:42 Option "ui_tree_unfold" will be added to 1.206 release.
I found if the file is open,after de-active and re-active,the tree will be fold. And after some editing, the tree will be fully unfold again.
Could we set it allways unfold except for we fold it manually?
Thanks!
SamC
Posts: 207
Joined: 12.08.2023 00:49

Re: code tree default folding level

Post by SamC »

I add a method in one plugin to do this,it's OK now~

def on_focus(self):
treeid = app_proc(PROC_GET_CODETREE, '')
tree_proc(treeid, TREE_ITEM_UNFOLD_DEEP)
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Re: code tree default folding level

Post by main Alexey »

optiuon 'ui_tree_unfold' may help you.
or try other options 'ui_tree_*'.
Post Reply