Alexey-T / CudaText

Cross-platform text editor, written in Free Pascal
Mozilla Public License 2.0
2.4k stars 167 forks source link

Cannot "Count all" for big file; option "ui_max_size_open" #5419

Closed qux-bbb closed 3 months ago

qux-bbb commented 3 months ago

First, generate a big file:

the_file = open("hello.txt", "w")
for i in range(10000000):
    the_file.write("hello"+"1"*100+"\n")
the_file.close()

Then open hello.txt by CudaText, you cannot count "hello" num:
disabled

Alexey-T commented 3 months ago

'Count' is enabled (button '...' is enabled) but only if you open file in EDITOR mode. editor mode is available for files smaller than 500M.

Screenshot from 2024-03-10 09-35-26

So, set in user.json option

  "ui_max_size_open": 1100,

and open file in EDITOR mode.

qux-bbb commented 3 months ago

Thank you very much!