0x7c13/Notepads

Needs to support large files (>1MB)

Opened this issue ยท 11 comments

My first attempt to open a file failed and the error shown reports that the app does not support a file greater than 1MB.

IMO This is an 'essential' feature for a notepad alternative.

Keep up the good work though. Thanks.

I do agree it is better to support large files but considering the work that I need to at this moment, I have to put it into my backlog for now. I would say, give me sometime and I will get back to this.

My plan on this would be:

Plan A:

  • Phase 1: For large files, Notepads read first 1MB or so and render that part in read-only mode.

  • Phase 2: For large files that opened with Notepads, Notepads use another implementation of the text editor control (potentially Monaco Editor: https://microsoft.github.io/monaco-editor/). So it should have the same performance for small files but can open/edit large files.

  • Phase 3: Check WinUI 3.0 status to see if any solution can be found to tackle this issue natively.

Plan B:

  • Implement pagination myself.

Plan C (Highly unlikely):

  • Implement my own eidt box using Win2D.

Sounds good?

More to read:
CommunityToolkit/WindowsCommunityToolkit#2858
microsoft/microsoft-ui-xaml#108

Maybe this is naive, but is it possible to (relatively) simply implement pagination by moving forward and backward through a FileStream in correlation to the scroll position?

edit: I just saw your reference to #6, which helps me understand why it's not such a simple problem.

@x3haloed The blocking issue is around ScrollViewer instead of RichEditBox. Actually RichEditBox can work with fairly large file but the ScrollViewer just cannot handle the size of the rendering. Believe it or not, if you set Font size to be 1-2, you can actually paste whole more content into Notepads.

There is an issue in the WinUI repository for this microsoft/microsoft-ui-xaml#1842.

Uhm... estimated time? 3 years have passed and this should have top priority IMHO

Uhm... estimated time? 3 years have passed and this should have top priority IMHO

Microsoft still doesn't support this scenario.

Great. Finally a really beautiful, dark mode supporting (basically perfect) notepad for Win 10. But with this 1 MB file size limitation, it's simply not usable. Unfortunately had to remove Notepads again because of this, too bad.

F ... I love this app but ... srsly this nneed to be solved, 3 yrs passed!

I upgraded to Win 11 and use the native editor (Notepad) again (my primary use-case for Notepads was the dark mode which the native one provides too on Win 11). Upgrade took me less then 3 years. Goodbye.

Wow ... thought this was just bothering me ... nope. Back to Notepad3. Keep it up, though!