code tree default folding level

SamC
Posts: 207
Joined: 12.08.2023 00:49

code tree default folding level

Post by SamC »

Hello,
The default folding status for code tree is automatic set to unfold the catalogue for the carset position and fold others.
Is it possible to force to maintain the unfold all status for easy to jump to certain position?
Thanks!
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Re: code tree default folding level

Post by main Alexey »

currently not possible. should we add the option, like "ui_tree_unfold":true ?
SamC
Posts: 207
Joined: 12.08.2023 00:49

Re: code tree default folding level

Post by SamC »

That would be helpful, Thanks!
BTW,
I check the new features, but not very clear for the description below, why we must remove tree-helper for python? And does the build-in tree helper means we can't adjust it anymore?
"add: new tree-helper for WikidPad, so you must remove Python tree-helper."
"add: new tree-helper for Textile, so you must remove Python tree-helper."
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Re: code tree default folding level

Post by main Alexey »

>why we must remove tree-helper for python?
Not tree-helper FOR PYTHON, but tree-helper WRITTEN ON PYTHON for languages WikidPad/Textile.
Addons do not have tree-helper FOR python at all.
>does the build-in tree helper means we can't adjust it anymore?
Pascal code can be adjusted too.
Last edited by main Alexey on 22.12.2023 09:55, edited 2 times in total.
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Re: code tree default folding level

Post by main Alexey »

Option "ui_tree_unfold" will be added to 1.206 release.
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Re: code tree default folding level

Post by main Alexey »

Beta 1.206 is now at
https://github.com/Alexey-T/CudaText/issues/5324
Pls test.
I had the idea to make the option per-lexer. so user can write it to lexer-specific config. but it is more work. maybe later.
SamC
Posts: 207
Joined: 12.08.2023 00:49

Re: code tree default folding level

Post by SamC »

main Alexey wrote: 22.12.2023 15:24 Beta 1.206 is now at
https://github.com/Alexey-T/CudaText/issues/5324
Pls test.
I had the idea to make the option per-lexer. so user can write it to lexer-specific config. but it is more work. maybe later.
I've download the 1.206 from sourceforge.net, it seems without that opition?(solved, see next)
Last edited by SamC on 23.12.2023 14:59, edited 2 times in total.
SamC
Posts: 207
Joined: 12.08.2023 00:49

Re: code tree default folding level

Post by SamC »

I've test pure cuda, it works.
And then I overwrite the default.json in default settings too, (also py, data, and main cuda program), it now works.

This time there is a blue block at the left side of the bottom bar, what's that mean? Thanks!
2023-12-232.png
2023-12-232.png (2.58 KiB) Viewed 1973 times
SamC
Posts: 207
Joined: 12.08.2023 00:49

Re: code tree default folding level

Post by SamC »

I also find an error like below at start, it didn't report error on 1.201.

Init: cuda_macros
Traceback (most recent call last):
File "C:\cudatext\py\cuda_macros\cd_macros.py", line 82, in on_start
self._do_acts(acts='|reg|menu|')
File "C:\cudatext\py\cuda_macros\cd_macros.py", line 610, in _do_acts
self.adapt_menu()
File "C:\cudatext\py\cuda_macros\cd_macros.py", line 97, in adapt_menu
if PLUG_AUTAG in [it['tag'] for it in top_its]:
File "C:\cudatext\py\cuda_macros\cd_macros.py", line 97, in <listcomp>
if PLUG_AUTAG in [it['tag'] for it in top_its]:
KeyError: 'tag'
ERROR: Exception in CudaText for on_start: KeyError: 'tag'
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Re: code tree default folding level

Post by main Alexey »

blue block at the left side of the bottom bar, what's that mean?
hm, I don't know. some plugin which I forgot about?
try to remove additional plugins (in 'py' folder) one by one.
ERROR: Exception in CudaText for on_start: KeyError: 'tag'
this is due to changed API in 1.206.
mentioned in https://wiki.freepascal.org/CudaText_API

solution: update all plugins from Addons Manager, restart. your error is from _old_ 'Macros'.
Post Reply