Notepads icon indicating copy to clipboard operation
Notepads copied to clipboard

Needs to support large files (>1MB)

Open pilcherd opened this issue 5 years ago • 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.

pilcherd avatar Jul 03 '19 14:07 pilcherd

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: windows-toolkit/WindowsCommunityToolkit#2858 microsoft/microsoft-ui-xaml#108

0x7c13 avatar Jul 04 '19 05:07 0x7c13

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 avatar Jul 24 '19 18:07 x3haloed

@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.

0x7c13 avatar Jul 25 '19 19:07 0x7c13

There is an issue in the WinUI repository for this https://github.com/microsoft/microsoft-ui-xaml/issues/1842.

yaira2 avatar Jan 14 '20 19:01 yaira2

you might want to take a look at this https://github.com/microsoft/microsoft-ui-xaml/issues/1842#issuecomment-905589474 https://github.com/WelterDevelopment/CodeEditorContol-WinUI

ivanjx avatar Oct 11 '21 15:10 ivanjx

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

Hexaae avatar Jul 03 '22 13:07 Hexaae

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

Microsoft still doesn't support this scenario.

yaira2 avatar Jul 03 '22 14:07 yaira2

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.

bcutter avatar Sep 13 '23 12:09 bcutter

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

l0g4n1337 avatar Nov 28 '23 20:11 l0g4n1337

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.

bcutter avatar Nov 28 '23 22:11 bcutter

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

foreachthing avatar Apr 09 '24 12:04 foreachthing