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

Column selection extends over wrapped parts of lines #10234

Closed
PhiLhoSoft opened this Issue Dec 30, 2015 · 5 comments

Comments

Projects
None yet
3 participants
@PhiLhoSoft

PhiLhoSoft commented Dec 30, 2015

According to the thread https://discuss.atom.io/t/vertical-column-selection/15913/7 we can do a column selection. On Windows, I can use Ctrl-Alt-Up / Down do extend the selection vertically.
This is nice and useful. But alas, this is a bit ruined when line wrapping is active (the default on Atom, I think).
I think this selection extension should skip over the wrapped part of the long lines: it makes no sense to extend the selection to these parts, as they are random (depend on the width of the editor!) and not aligned with anything.

@lee-dohm

This comment has been minimized.

Show comment
Hide comment
@lee-dohm

lee-dohm Dec 30, 2015

Member

line wrapping is active (the default on Atom, I think).

Soft Wrap is not enabled by default, no.

As to the rest of the idea, I think your suggested behavior would be counterintuitive. Can you cite any other examples where text or other data would be inside a selection but not selected?

Member

lee-dohm commented Dec 30, 2015

line wrapping is active (the default on Atom, I think).

Soft Wrap is not enabled by default, no.

As to the rest of the idea, I think your suggested behavior would be counterintuitive. Can you cite any other examples where text or other data would be inside a selection but not selected?

@PhiLhoSoft

This comment has been minimized.

Show comment
Hide comment
@PhiLhoSoft

PhiLhoSoft Dec 31, 2015

Perhaps it is default only in Markdown documents, where the wrapping is the most useful, or perhaps I just played with settings so much I don't recall anything... 😄
Anyway, that's not relevant to the issue, but that's for correcting.

OK, I made screen captures with LICEcap to illustrate my point, with a semi-realistic use case.
One with SciTE, my favorite lightweight / "dumb" editor that I use for everyday tasks.
columnselectionwithwrapping-scite
Another with Atom, my currently favorite "smart" editor with IDE-like features... 😉
columnselectionwithwrapping-atom

In SciTE, the selection skips the wrapped parts, although I have to hit Alt+Shift+Down to go over these parts. Why not, that's what it does in normal caret moves. Anyway, as expected, I select only the start of the lines, the common part between them.

In Atom, the wrapped part is selected too, so the rectangular selection is unusable.

I grant you, this is not a common use case, I can toggle the wrapping mode before doing my selection, etc. But still, that's in getting right small details that we recognize great editors... 😉

PhiLhoSoft commented Dec 31, 2015

Perhaps it is default only in Markdown documents, where the wrapping is the most useful, or perhaps I just played with settings so much I don't recall anything... 😄
Anyway, that's not relevant to the issue, but that's for correcting.

OK, I made screen captures with LICEcap to illustrate my point, with a semi-realistic use case.
One with SciTE, my favorite lightweight / "dumb" editor that I use for everyday tasks.
columnselectionwithwrapping-scite
Another with Atom, my currently favorite "smart" editor with IDE-like features... 😉
columnselectionwithwrapping-atom

In SciTE, the selection skips the wrapped parts, although I have to hit Alt+Shift+Down to go over these parts. Why not, that's what it does in normal caret moves. Anyway, as expected, I select only the start of the lines, the common part between them.

In Atom, the wrapped part is selected too, so the rectangular selection is unusable.

I grant you, this is not a common use case, I can toggle the wrapping mode before doing my selection, etc. But still, that's in getting right small details that we recognize great editors... 😉

@stale stale bot added the stale label Aug 29, 2017

@stale

This comment has been minimized.

Show comment
Hide comment
@stale

stale bot Aug 29, 2017

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale bot commented Aug 29, 2017

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot closed this Sep 12, 2017

@dotjay

This comment has been minimized.

Show comment
Hide comment
@dotjay

dotjay Feb 20, 2018

Shame this was closed. I often find I have to toggle soft wrap off, then column select, then toggle soft wrap back on.

dotjay commented Feb 20, 2018

Shame this was closed. I often find I have to toggle soft wrap off, then column select, then toggle soft wrap back on.

@lock

This comment has been minimized.

Show comment
Hide comment
@lock

lock bot Aug 19, 2018

This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

lock bot commented Aug 19, 2018

This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

@lock lock bot locked as resolved and limited conversation to collaborators Aug 19, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.