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

Soft wrap #2184

Closed
wants to merge 4 commits into from
Closed

Soft wrap #2184

wants to merge 4 commits into from

Conversation

kirawi
Copy link
Member

@kirawi kirawi commented Apr 20, 2022

Objective

This PR will resolve #136. On Matrix, @cessen suggested splitting the overall soft-wrapping feature into two PRs for each of the two techniques he proposed. This PR will only implement the first, which should be enough for the majority of cases.

Status

The View position is not yet represented by a char offset into the text, and so editing is not yet feasible. Rendering is also partial, as it will not correctly calculate the lines, won't wrap on a word break, nor will the cursor wrap to the next line once it goes past the screen. While I am reasonably confident about how to approach implementing this, it's being delayed by a lack of time on my part.

Will depend upon #3268

@kirawi kirawi force-pushed the soft-wrap branch 3 times, most recently from 5941231 to cc05842 Compare May 2, 2022 22:35
@the-mikedavis the-mikedavis added the S-experimental Status: Ongoing experiment that does not require reviewing and won't be merged in its current state. label May 18, 2022
@kirawi kirawi added the A-helix-term Area: Helix term improvements label Sep 13, 2022
@jfaz1
Copy link

jfaz1 commented Sep 19, 2022

Hey there @kirawi, now that Markdown is supported out-of-the-box, I think it'd be great to be able to use soft wrap, seeing as we might be writing paragraphs and whatnot. I see you've merged a few changes since your last update to the PR, so just wondering what's missing or if editing is feasible yet? Thank you for your work on this!

@kirawi
Copy link
Member Author

kirawi commented Sep 20, 2022

It's far from ready. I'm waiting for motivation to complete #3268 which entails implementing a cached line wrapper iterator.

@kirawi kirawi added the S-waiting-on-pr Status: This is waiting on another PR to be merged first label Sep 26, 2022
@theherk
Copy link

theherk commented Oct 19, 2022

I'm waiting for motivation to complete #3268...

Maybe we can send cookies.

@pascalkuthe pascalkuthe mentioned this pull request Nov 4, 2022
2 tasks
@kirawi
Copy link
Member Author

kirawi commented Dec 5, 2022

Closing in favor of #5008

@kirawi kirawi closed this Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-helix-term Area: Helix term improvements S-experimental Status: Ongoing experiment that does not require reviewing and won't be merged in its current state. S-waiting-on-pr Status: This is waiting on another PR to be merged first
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support soft wrap
4 participants