microsoft / terminal

The new Windows Terminal and the original Windows console host, all in the same place!
MIT License
95.02k stars 8.23k forks source link

Per-profile wordCharacters #3078

Open egmontkob opened 4 years ago

egmontkob commented 4 years ago

Description of the new feature/enhancement

"wordDelimiters" is a global config option rather than a per-profile one, although there's nothing in this option that inherently has to make it a global one.

In gnome-terminal we had quite a lot of debates around which character should be included and which not. The biggest debate was around :. Folks working with URLs or timestamps want colons to be word characters. Folks working with e.g. grep or compiler outputs (such as filename:matching_content or filename:line_number want the colon to be a stop character.

I can easily imagine that some users would prefer to have different profiles with different double click behaviors, depending on the kind of task they're working on.

Could you guys consider moving it to a per-profile option? Although then it's a bit of maintenance burden when someone wants to update the set and has to do for all the profiles. Feel free to close this bug if it was a deliberate choice from you to make it global.

(On a side note, the same question could also be asked for "copyOnSelect" I guess...?? I'm not sure about that, my gut feelings tell me it's better to have an overall consistent experience here, just as you don't want to have different "keybindings" per profile, but again, these are just feelings.)

zadjii-msft commented 4 years ago

I definitely agree that there's nothing that inherently makes this a global setting. It could certainly be a per-profile setting.

Maybe this is something that would be made easier with #2325, so the "global profile defaults" would have the default settings we provide, and then users could update it per-profile if they wanted.

I concur that copyOnSelect could definitely fit into that category of settings as well.