Text Highlighting on Save

Solved bugs are moved into this topic...
Post Reply
hamasaki
Posts: 54
Joined: 16.07.2014 19:10

Text Highlighting on Save

Post 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.
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

"ui_max_history_files": 0, to disable history.
hamasaki
Posts: 54
Joined: 16.07.2014 19:10

Post 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.
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post 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
hamasaki
Posts: 54
Joined: 16.07.2014 19:10

Post 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?

:)
Alexey
Posts: 1633
Joined: 05.10.2012 22:10

Post by Alexey »

Yes, it is a good idea. todo.
hamasaki
Posts: 54
Joined: 16.07.2014 19:10

Post by hamasaki »

Thank you.
Post Reply