Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

frontend/html: awesome rendering #424

Closed
emersion opened this issue Oct 23, 2014 · 3 comments
Closed

frontend/html: awesome rendering #424

emersion opened this issue Oct 23, 2014 · 3 comments
Labels

Comments

@emersion
Copy link
Contributor

For the moment, each time you type the whole file contents is re-rendered.

We should render only modified lines and lines where the syntax coloration has changed, like in the QML frontend.

I don't understand very well how to do this for now, could you help me a little please?

@quarnster
Copy link
Member

Related to #303, #425.

The qml frontend currently first adds a BufferChangedCallback to the buffer, and then in the callback it counts the number of new lines in the region added.

It doesn't handle line removal efficiently yet as the number of new lines removed will already have been removed once the callback is called. Thus one will have to figure out in some other way how many lines to remove. I'm not too happy about that and I've opened up text#3 to improve this.

The qml frontend actually does a unneeded re-formatting of the whole file currently... #425 opened which would help improve that in the future.

@quarnster
Copy link
Member

@erbridge
Copy link
Contributor

Migrated to limetext/lime-html#1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants