Page 1 of 1
Text Highlighting on Save
Posted: 02.06.2020 02:24
by hamasaki
Hi Alexey,
Quick question. If I highlight some text, close the file and re-open, the text is still highlighted. Can I switch that off? I'm not sure what I'm looking for in the settings.
Thank you.
Posted: 02.06.2020 04:56
by Alexey
"ui_max_history_files": 0, to disable history.
Posted: 04.06.2020 02:27
by hamasaki
OK, thanks. I don't want to disable the history, just the text being highlighted. I'm not sure I understand what you mean in the suggestion.
Posted: 04.06.2020 08:57
by Alexey
to clarify it. I just added new option to v1.102.4: ui_history_disabled.
what you need - add to this option char "c" to disable saving caret pos+selection.
so file reopened - no selection present.
test it:
https://github.com/Alexey-T/CudaText/issues/2619
Posted: 08.06.2020 05:42
by hamasaki
Perfect, thanks Alexey. Works great.
Although, I did quite like the caret position being remembered, I just didn't want the text highlighted. Maybe you can't separate that into two options?

Posted: 08.06.2020 07:07
by Alexey
Yes, it is a good idea. todo.
Posted: 11.06.2020 07:13
by hamasaki
Thank you.