TheLocehiliosan / yadm

Yet Another Dotfiles Manager
https://yadm.io/
GNU General Public License v3.0
5.07k stars 176 forks source link

[Alternates] Support `_` as space replacement when scoring alternates #432

Closed signed-log closed 2 years ago

signed-log commented 2 years ago

What does this PR do?

Replace all spaces by _ at scoring-time (only for distro/distro-family since it is the only values that can conceivably have a space in them) to allow for _ to be used as space replacement when naming alternates

What issues does this PR fix or reference?

421

Previous Behavior

It would have required a ` to have a correct alternate scoring, which messes with some completion engines (e.g. inzsh`) and makes the filename more complicated to parse when using other tools

New Behavior

It can take _ as a space replacement

Have tests been written for this change?

No

Have these commits been signed with GnuPG?

Yes


Please review yadm's Contributing Guide for best practices.