Code Monkey home page Code Monkey logo

Comments (10)

yaira2 avatar yaira2 commented on May 19, 2024 6

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

Microsoft still doesn't support this scenario.

from notepads.

0x7c13 avatar 0x7c13 commented on May 19, 2024 3

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

from notepads.

x3haloed avatar x3haloed commented on May 19, 2024 1

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.

from notepads.

0x7c13 avatar 0x7c13 commented on May 19, 2024 1

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

from notepads.

yaira2 avatar yaira2 commented on May 19, 2024 1

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

from notepads.

l0g4n1337 avatar l0g4n1337 commented on May 19, 2024 1

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

from notepads.

ivanjx avatar ivanjx commented on May 19, 2024

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

from notepads.

Hexaae avatar Hexaae commented on May 19, 2024

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

from notepads.

bcutter avatar bcutter commented on May 19, 2024

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.

from notepads.

bcutter avatar bcutter commented on May 19, 2024

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.

from notepads.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.