wordDelimiters not working, always breaks on a dot '.' or dash '-' #9583

Closed
opened 2026-01-31 01:58:22 +00:00 by claunia · 2 comments
Owner

Originally created by @frostbitefalls on GitHub (Jul 12, 2020).

Environment

Windows 10 Pro, 10.0.18362.900

Steps to reproduce

Windows Terminal 1.0.1811.0 -- edit settings.json, add the line below to "defaults", or any profile, or both; exit and restart;
display some text, eg a set of files including several with extensions like .c, .html, .css, .jpg, .png, others;
double-click any displayed file name.

"wordDelimiters" : "`'&()*,;<=>?@[]{|}:"

(this example has no '.' and no '-' chars; the line ends with or without a trailing comma , as needed; no errors reported after saving settings.json and none after restarting Windows Terminal)

Expected behavior

For any displayed file name absent of any delimiter chars shown above, the entire file name should be selected / inverted.

Actual behavior

Selection / inversion includes characters only up to the first occurrence of '.' or '-' in both directions.

Originally created by @frostbitefalls on GitHub (Jul 12, 2020). # Environment Windows 10 Pro, 10.0.18362.900 # Steps to reproduce Windows Terminal 1.0.1811.0 -- edit settings.json, add the line below to "defaults", or any profile, or both; exit and restart; display some text, eg a set of files including several with extensions like .c, .html, .css, .jpg, .png, others; double-click any displayed file name. "wordDelimiters" : "`'&()*,;<=>?@[]{|}:" (this example has no '.' and no '-' chars; the line ends with or without a trailing comma , as needed; no errors reported after saving settings.json and none after restarting Windows Terminal) # Expected behavior For any displayed file name absent of any delimiter chars shown above, the entire file name should be selected / inverted. # Actual behavior Selection / inversion includes characters only up to the first occurrence of '.' or '-' in both directions.
claunia added the Needs-TriageNeeds-Tag-FixNeeds-Attention labels 2026-01-31 01:58:22 +00:00
Author
Owner

@DHowett commented on GitHub (Jul 12, 2020):

Sorry for the confusion. The word delimiters setting has to be placed at the top level of settings (outside of the profiles area.)

@DHowett commented on GitHub (Jul 12, 2020): Sorry for the confusion. The word delimiters setting has to be placed at the top level of settings (outside of the profiles area.)
Author
Owner

@frostbitefalls commented on GitHub (Jul 12, 2020):

Thanks. For docs I read this MS page.
Probably missed the keyword root or the meaning wasn't clear. After your update I made the change and the feature works OK.

@frostbitefalls commented on GitHub (Jul 12, 2020): Thanks. For docs I read [this MS page](https://docs.microsoft.com/en-us/windows/terminal/customize-settings/global-settings). Probably missed the keyword root or the meaning wasn't clear. After your update I made the change and the feature works OK.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#9583