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

Feature: Scrolling #2

Open
bhivam opened this issue May 21, 2024 · 0 comments
Open

Feature: Scrolling #2

bhivam opened this issue May 21, 2024 · 0 comments

Comments

@bhivam
Copy link
Owner

bhivam commented May 21, 2024

Right now if we have text that is too long vertically, it will go off the screen.

To implement scrolling, we should have a way of specifying the section of text we want to display and a way of updating this specification. The update will occur upon cursor movement.

Along with this, we want to be able to line numbers of 3 digits or higher.

To achieve this, maybe we should ask the calculate_content function to break up the text into a series of slices that each contain a full line of the overall content. This might make calculations easier.

While we're at it, we can change up the way the editor serves content to the frontend. Then we just add an update_content function which is called at the end of any content modification. This way we are not recalculating just to move the cursor around.

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

No branches or pull requests

1 participant