Gogh icon indicating copy to clipboard operation
Gogh copied to clipboard

Formatting of color scheme names on macOS

Open ashikase opened this issue 1 year ago • 0 comments

On macOS, the names of the available color schemes are not properly formatted, as seen in this screenshot:

image

The problem is that the following line does not work with the BSD version of sed that comes with macOS:

https://github.com/Gogh-Co/Gogh/blob/47961a839af44f2ca5708fdb86581fd867382f4f/gogh.sh#L520

I ended up replacing the line with a version using perl, though there is probably a better solution:

perl -pe 's/\.\S*//g;' -e 's/-/ /g;' -e 's/\b\w\w/\u$&/g;'

ashikase avatar Sep 26 '24 18:09 ashikase