CudaText uses a hardcoded default config. At the same time, the default config is stored in the default.json file, which serves to show the user examples of settings and their initial values. This config (along with built-in plugins) can recreate the cudatext executable if the config has been deleted. That is, only the binary is really enough. to start working minimally.
Experiment.
Move config dir to backup:
$ mv ~/.config/cudatext/ ~/.config/cudatext.bak/
Start and stop CudaText:
$ /usr/bin/cudatext
^C
CudaText created a config directory with default data. Compare the generated file with the file from the distribution kit:
$ diff ~/.config/cudatext/settings_default/default.json ~/.config/cudatext.bak/settings_default/default.json
588a589,591
> //UI tabs: global visible flag for ui-tabs
> "ui_tab_show": true,
>
1156,1157c1159,1160
< //[Ui/Toolbars]
< //Show sidebar (vertical bar on the left side)
---
> //[Ui/Panels]
> //Show sidebar (vertical bar with buttons on the left side)
1160c1163
< //Show sidebar on the right side
---
> //Place sidebar on the right side
1167c1170
< //Show toolbar (horizontal bar, below window title)
---
> //Show toolbar (horizontal bar with buttons, below window title)
1176a1180,1191
>
> //Side-panel's visible state on program start
> // 0: Restore state from history file
> // 1: Show
> // 2: Hide, program shows panel if needed
> "ui_sidepanel_on_start": 0,
>
> //Bottom-panel's visible state on program start
> // 0: Restore state from history file
> // 1: Show
> // 2: Hide, program shows panel if needed
> "ui_bottom_on_start": 0,
We see that the newly created file default.json does not contain the latest features that are actually in this beta and that are present in the config from the distribution.
Conclusion: the binary contains two copies of the config. One actually uses, the other serves as a template for generating a json file. And they are different - the template remained from the previous version, where the latest features were missing.
@wb027 Замечательно!
@Alexey-T Что только не узнаешь через почти десять лет пользования Куд. Восстановление def.json было всегда?
@kvichans «Ох весело читать ваши russkie razgovory» :)
No "restoring of default.json" exists AFAIR. what is present: is copying of "py" std modules + "data" std files + def.json from Debian / Ubuntu install folder, if current app version <> version from "settings/packages.json" app=.
Only if .deb file was installed.
@wb027 So check with DELETED line app= in settings/packages.json or with uninstalled app .deb package.
Added more info to https://wiki.freepascal.org/CudaText#Linux_installation
It solved this question
I'll go to the pharmacy, ask if they have ashes so I can powder my hoarhead.
What do you mean.
Ah ok.
Deb package has been removed.
I hope to have no side effects in the future when I test new beta versions.
@wb027
Btw. you have energy. so you can (may) find lexer bugs.
for any lexers you use.
rich test files are here--
https://github.com/sublimehq/Packages/
in repo, find files "syntax_test*".
and any other tests can be used of course.