Terminal should treat the spaces at the right edge of a nonwrapped line as one region #8238

Open
opened 2026-01-31 01:24:19 +00:00 by claunia · 1 comment
Owner

Originally created by @DHowett on GitHub (May 18, 2020).

Originally assigned to: @carlos-zamora on GitHub.

In most other terminal emulators, when you drag a selection off the right edge of the text it selects the entire empty region up to the edge of the screen as a single unit.

There may be an impact, if we do this, on how we copy versus do not copy newlines.

+----------------------------------------------+
|TEXT TEXT TEXT                                |
|                                              |
+----------------------------------------------+

Selection:

              v cursor is here
 ##############
|TEXT TEXT TEXT                                |

drag right...

               v cursor is here
 ##############################################
|TEXT TEXT TEXT                                |

There's an argument to be made that copying TEXT TEXT TEXT should not have a newline and copying TEXT TEXT TEXT<SPACE> should.

Originally created by @DHowett on GitHub (May 18, 2020). Originally assigned to: @carlos-zamora on GitHub. In most other terminal emulators, when you drag a selection off the right edge of the text it selects the entire empty region up to the edge of the screen as a single unit. There may be an impact, if we do this, on how we copy versus do not copy newlines. ``` +----------------------------------------------+ |TEXT TEXT TEXT | | | +----------------------------------------------+ ``` Selection: ``` v cursor is here ############## |TEXT TEXT TEXT | drag right... v cursor is here ############################################## |TEXT TEXT TEXT | ``` There's an argument to be made that copying `TEXT TEXT TEXT` should not have a newline and copying `TEXT TEXT TEXT<SPACE>` should.
claunia added the Issue-TaskProduct-TerminalArea-UserInterface labels 2026-01-31 01:24:19 +00:00
Author
Owner

@DHowett commented on GitHub (May 19, 2020):

/cc @carlos-zamora can you hook this up to the selection megathread?

Unassign yourself when you've done that 😄

@DHowett commented on GitHub (May 19, 2020): /cc @carlos-zamora can you hook this up to the selection megathread? Unassign yourself when you've done that :smile:
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#8238