Double-click selection in vim doesn't wrap onto next line (although Terminal understands it's a single line because it detects and underscores the URL) #18726

Closed
opened 2026-01-31 06:22:34 +00:00 by claunia · 8 comments
Owner

Originally created by @vadimkantorov on GitHub (Oct 20, 2022).

Windows Terminal version

1.15.2713.0 (btw would be nice if wt -v dialog window allowed copy of text)

Windows build number

10.0.22621.674

Other Software

No response

Steps to reproduce

Have a long line (url) in vim wrapping on multiple lines. It gets highlighted/underscored as a URL, so Terminal understands that it's a single line. But double-click for select/copy-on-select doesn't wrap around.

image

Expected Behavior

No response

Actual Behavior

Not the full line is selected

Originally created by @vadimkantorov on GitHub (Oct 20, 2022). ### Windows Terminal version 1.15.2713.0 (btw would be nice if wt -v dialog window allowed copy of text) ### Windows build number 10.0.22621.674 ### Other Software _No response_ ### Steps to reproduce Have a long line (url) in vim wrapping on multiple lines. It gets highlighted/underscored as a URL, so Terminal understands that it's a single line. But double-click for select/copy-on-select doesn't wrap around. ![image](https://user-images.githubusercontent.com/1041752/196913810-49b350c6-4741-4698-b8cb-7649edd474f0.png) ### Expected Behavior _No response_ ### Actual Behavior Not the full line is selected
claunia added the Issue-BugResolution-Duplicate labels 2026-01-31 06:22:34 +00:00
Author
Owner

@lhecker commented on GitHub (Oct 20, 2022):

I believe this is a /duplicate of #6178.

@lhecker commented on GitHub (Oct 20, 2022): I believe this is a /duplicate of #6178.
Author
Owner

@ghost commented on GitHub (Oct 20, 2022):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Oct 20, 2022): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Author
Owner

@DHowett commented on GitHub (Oct 20, 2022):

This may be like the bash issue, though, if vim is hard-wrapping its text. The URL detector strings together every line (which is also a problem, but in the other direction: it ignores hard wraps)!

@DHowett commented on GitHub (Oct 20, 2022): This may be like the bash issue, though, if vim is hard-wrapping its text. The URL detector strings together every line (which is also a problem, but in the other direction: it ignores hard wraps)!
Author
Owner

@DHowett commented on GitHub (Oct 20, 2022):

btw would be nice if wt -v dialog window allowed copy of text

Funny enough, it does! All win32 dialogs/message boxes can be copied to the clipboard with Ctrl+C! They even get a fun hard copy rendition:

---------------------------
Help
---------------------------
Windows Terminal Preview
1.17.2842.0
---------------------------
OK   
---------------------------
@DHowett commented on GitHub (Oct 20, 2022): > btw would be nice if wt -v dialog window allowed copy of text Funny enough, it does! All win32 dialogs/message boxes can be copied to the clipboard with Ctrl+C! They even get a fun hard copy rendition: ``` --------------------------- Help --------------------------- Windows Terminal Preview 1.17.2842.0 --------------------------- OK --------------------------- ```
Author
Owner

@vadimkantorov commented on GitHub (Oct 20, 2022):

Funny enough, it does!

Wow! It probably should be explicitly added to a dialog window title or window text. I bet that no more than 1000 people on the globe know about this win32 feature :) Or maybe OK could copy this text to the clipboard as well (but this would also need to be hinted)

@vadimkantorov commented on GitHub (Oct 20, 2022): > Funny enough, it does! Wow! It probably should be explicitly added to a dialog window title or window text. I bet that no more than 1000 people on the globe know about this win32 feature :) Or maybe OK could copy this text to the clipboard as well (but this would also need to be hinted)
Author
Owner

@vadimkantorov commented on GitHub (Oct 20, 2022):

This may be like the bash issue, though, if vim is hard-wrapping its text.

Bash can interfere into vim? My problem was specifically with vim.

But bash seems to have the same problem:
image

@vadimkantorov commented on GitHub (Oct 20, 2022): > This may be like the bash issue, though, if vim is hard-wrapping its text. Bash can interfere into vim? My problem was specifically with vim. But bash seems to have the same problem: ![image](https://user-images.githubusercontent.com/1041752/197049648-c452306e-dac5-4246-96f1-b649813df833.png)
Author
Owner

@DHowett commented on GitHub (Oct 20, 2022):

Bash can interfere into vim?

Sorry, what I mean is this.

bash does hard line wrapping.
Maybe vim does hard line wrapping too.

(It may be "like" the bash issue you'd filed. 🙂)

@DHowett commented on GitHub (Oct 20, 2022): > Bash can interfere into vim? Sorry, what I mean is this. bash does hard line wrapping. Maybe vim does hard line wrapping too. (It may be "like" the bash issue you'd filed. 🙂)
Author
Owner

@vadimkantorov commented on GitHub (Oct 20, 2022):

Maybe at least for the case of URLs, the hard-wrap merging could be enabled... it's very strange that uncerscoring and selection do not match

@vadimkantorov commented on GitHub (Oct 20, 2022): Maybe at least for the case of URLs, the hard-wrap merging could be enabled... it's very strange that uncerscoring and selection do not match
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#18726