wordDelimiters not working inside tmux with [shift]+[left mouse click] #12868

Closed
opened 2026-01-31 03:27:16 +00:00 by claunia · 5 comments
Owner

Originally created by @Kristijan on GitHub (Mar 4, 2021).

Environment

Windows build number: 10.0.18363.1379
Windows Terminal version (if applicable): 1.6.10571.0

Any other software?
Ubuntu using WSL 1
tmux 3.2-rc2 (set-option -g mouse on)

I run tmux from another Linux server, so the flow is:
Windows Terminal --> Ubuntu WSL 1 --> SSH to remote host --> tmux

Steps to reproduce

I updated from Microsoft WindowsTerminal 1.5.10271.0 to 1.6.10571.0 and have been using the following configuration for wordDelimiters "wordDelimiters": " ()\"':,;<>~!@#$%^&*|+=[]{}~?│".

With 1.5.10271.0, the wordDelimiters were honored in both my Ubuntu WSL 1 zsh shell (double click left mouse button), and inside tmux (shift + double click left mouse button).

With 1.6.10571.0, the wordDelimiters are honored in my Ubuntu WSL 1 zsh shell (double click left mouse button), but not inside tmux (shift + double click left mouse button). Holding the shift key and double clicking to select text from within tmux only partially selects text (such as entire words), and doesn't honor the wordDelimiters confugration.

Expected behavior

The expected behavior is that selecting text from within tmux with (shift+double click left mouse button) works as it did in Microsoft WindowsTerminal 1.5.10271.0.

Actual behavior

The actual behavior is that selecting text from within tmux with (shift+double click left mouse button) only partially selects text with Microsoft WindowsTerminal 1.6.10571.0.

Originally created by @Kristijan on GitHub (Mar 4, 2021). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ```none Windows build number: 10.0.18363.1379 Windows Terminal version (if applicable): 1.6.10571.0 Any other software? Ubuntu using WSL 1 tmux 3.2-rc2 (set-option -g mouse on) I run tmux from another Linux server, so the flow is: Windows Terminal --> Ubuntu WSL 1 --> SSH to remote host --> tmux ``` # Steps to reproduce I updated from Microsoft WindowsTerminal 1.5.10271.0 to 1.6.10571.0 and have been using the following configuration for wordDelimiters `"wordDelimiters": " ()\"':,;<>~!@#$%^&*|+=[]{}~?│"`. With 1.5.10271.0, the wordDelimiters were honored in both my Ubuntu WSL 1 zsh shell (double click left mouse button), and inside tmux (shift + double click left mouse button). With 1.6.10571.0, the wordDelimiters are honored in my Ubuntu WSL 1 zsh shell (double click left mouse button), but not inside tmux (shift + double click left mouse button). Holding the shift key and double clicking to select text from within tmux only partially selects text (such as entire words), and doesn't honor the wordDelimiters confugration. # Expected behavior The expected behavior is that selecting text from within tmux with (shift+double click left mouse button) works as it did in Microsoft WindowsTerminal 1.5.10271.0. # Actual behavior The actual behavior is that selecting text from within tmux with (shift+double click left mouse button) only partially selects text with Microsoft WindowsTerminal 1.6.10571.0.
Author
Owner

@DHowett commented on GitHub (Mar 4, 2021):

@don-vito may be a regression from the shift click selection endpoint change #8611 :(

@DHowett commented on GitHub (Mar 4, 2021): @don-vito may be a regression from the shift click selection endpoint change #8611 :(
Author
Owner

@Don-Vito commented on GitHub (Mar 4, 2021):

@DHowett - I will try to take a look in the next few days.

@Don-Vito commented on GitHub (Mar 4, 2021): @DHowett - I will try to take a look in the next few days.
Author
Owner

@Don-Vito commented on GitHub (Mar 5, 2021):

So the problem is following: currently shift+click selects a single cell. When the second tap occurs, instead of applying the double-click logic we simply extend the selection, resulting in partial selection.

To address this I suggest to extend selection only with shift+single-click. I will issue a PR with more details.

@Don-Vito commented on GitHub (Mar 5, 2021): So the problem is following: currently shift+click selects a single cell. When the second tap occurs, instead of applying the double-click logic we simply extend the selection, resulting in partial selection. To address this I suggest to extend selection only with shift+single-click. I will issue a PR with more details.
Author
Owner

@ghost commented on GitHub (Apr 14, 2021):

:tada:This issue was addressed in #9403, which has now been successfully released as Windows Terminal v1.7.1033.0.🎉

Handy links:

@ghost commented on GitHub (Apr 14, 2021): :tada:This issue was addressed in #9403, which has now been successfully released as `Windows Terminal v1.7.1033.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.7.1033.0) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Author
Owner

@ghost commented on GitHub (Apr 14, 2021):

:tada:This issue was addressed in #9403, which has now been successfully released as Windows Terminal Preview v1.8.1032.0.🎉

Handy links:

@ghost commented on GitHub (Apr 14, 2021): :tada:This issue was addressed in #9403, which has now been successfully released as `Windows Terminal Preview v1.8.1032.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.8.1032.0) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#12868