Page 1 of 2
code tree default folding level
Posted: 22.12.2023 08:08
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!
Re: code tree default folding level
Posted: 22.12.2023 08:45
by main Alexey
currently not possible. should we add the option, like "ui_tree_unfold":true ?
Re: code tree default folding level
Posted: 22.12.2023 08:54
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."
Re: code tree default folding level
Posted: 22.12.2023 09:02
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.
Re: code tree default folding level
Posted: 22.12.2023 09:42
by main Alexey
Option "ui_tree_unfold" will be added to 1.206 release.
Re: code tree default folding level
Posted: 22.12.2023 15:24
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.
Re: code tree default folding level
Posted: 23.12.2023 14:02
by SamC
I've download the 1.206 from sourceforge.net, it seems without that opition?(solved, see next)
Re: code tree default folding level
Posted: 23.12.2023 14:07
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 (2.58 KiB) Viewed 3765 times
Re: code tree default folding level
Posted: 23.12.2023 14:21
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'
Re: code tree default folding level
Posted: 23.12.2023 16:35
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'.