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

Block Selection #90

Closed
illumi opened this issue Dec 11, 2014 · 4 comments
Closed

Block Selection #90

illumi opened this issue Dec 11, 2014 · 4 comments

Comments

@illumi
Copy link

illumi commented Dec 11, 2014

I release there was some talk about Block Selection in the past, was there ever a conclusion about this with the move to newer Java versions?

@bobbylight
Copy link
Owner

This is not yet implemented, and would be a major new feature. I'd like to do it one day but it is not going to be in the next release.

@goranschwarz
Copy link

Any traction on the "Block Selection" feature?
(it has been open for a while)

@siggemannen
Copy link

I have implemented a very dirty version locally, and was not easy, but i'm not a great programmer swingwise either.
The way i did was to implement a mouse listener that creates multiple selection points on Alt-keydown to "fake" a column selection. Then you need to reimplement replaceSelection-method and similar with a version that honors replacement of multiple selections, and well as getSelection stuff for copy/paste operations, and there are a couple of such places. Another tricky part is column selections and tabs as well as "virtual space" stuff / jagged lines.

The part i'm not done with is to "keep" selection and caret marking after inserting a key. It's too bad java doesn't support this out of the box. Also, there is no/bad support for stuff like virtual space.

@bobbylight
Copy link
Owner

bobbylight commented Sep 1, 2020

I thought this was in a branch (with bugs) but it isn't. I had done some work on it but like @siggemannen's attempt there were outstanding issues and it wasn't true multi-caret like folks expect these days. I'll see if I can find my local branch with this work and push it as a starting point

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

No branches or pull requests

4 participants