microsoft/Terminal

More Unicode-savvy wordDelimiters

Open

#3.077 aberto em 5 de out. de 2019

Ver no GitHub
 (2 comments) (3 reactions) (0 assignees)C++ (3.212 forks)batch import
Area-SettingsHelp WantedIssue-TaskPriority-3Product-Terminal

Métricas do repositório

Stars
 (35.764 stars)
Métricas de merge de PR
 (Mesclagem média 27d 19h) (24 fundiu PRs em 30d)

Description

Description of the new feature/enhancement

"wordDelimiter" lists a couple of stop characters, such as ASCII quotation mark ", apostrophe ', hyphen/minus - and such.

However, special Unicode quotation marks like , , apostrophes like dashes , , box drawing characters, non-breaking spaces and so on an so forth remain word characters (selected on a double click) which is most likely not the best behavior, and adding such characters one by one to the set as the user encounters them is cumbersome.

Proposed technical implementation details

I think the default behavior should be based on Unicode character categories. On top of this there could be a way to add/remove certain characters to/from the set as exceptions. (Maybe even a way to add/remove entire character categories at once, although that might be an overkill.)

Guia do colaborador