-
Notifications
You must be signed in to change notification settings - Fork 689
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
[DRAFT] Add rectangle select #963
[DRAFT] Add rectangle select #963
Conversation
This is a draft right now but I thought I'd get it in as a proposal 🙂 Things that would need adding still:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the idea!
Okay the big one is selectionString. I actually have significant changes to this function in my hyperlinks branch ("urls"). My new implementation is a lot simpler and I think will get rid of some of your headaches, I wonder how we should reconcile that.... maybe I should cherry pick it over somehow or make a partial PR before I finish up the hyperlink work.
Works for me! I'll keep an eye out for that and work on the rest of the feedback in the meantime 🙂 |
800d06e
to
c9052bf
Compare
All done now, will keep in draft until we have that updated |
I just realized that this doesn't require any renderer changes does it, because we use |
That's correct! No changes to the renderer... I almost thought some might be needed cuz when I was doing it initially we were bleeding selection in the upper right/bottom left but that was just due to the fact I forgot some related bounds checks in the It's pretty awesome that it worked out to be this straightforward! 🎉 |
Hyperlink PR is #968. Its still quite raw, but that has the selectionString changes. |
This adds rectangle select mode; when dragging with ctrl+alt (or super+alt on MacOS), this allows you to select a rectangular region of the terminal instead of the full start-end points of the buffer.
c9052bf
to
7f6db38
Compare
Rebased and things still pass with the same implementation 🙂 I'd imagine the one thing that would have definitely improved now is the fact that we don't have to worry about the memory management of rectangle versus regular since that's calculated after the selection text is fully finalized. PS: Once urls is in I'll change the base back, just wanted to keep the noise down in the PR. |
Oh lol this closed because the original branch deleted sorry. Can you rebase on main and reopen... however GitHub lets you do that. I can't seem to be able to do it from here. |
Weird, surprised the base didn't change! I can't edit the base branch anymore either... will reopen shortly! |
This adds rectangle select mode; when dragging with ctrl+alt (or super+alt on MacOS), this allows you to select a rectangular region of the terminal instead of the full start-end points of the buffer.
2023-11-28.11-12-13.mp4