juliamono
juliamono copied to clipboard
"SS20" (splashtidy) does not work in general cases
I tried to turn feature code "SS20" (splashtidy) on in VSCode with JuliaMono, but in general it does not work for a lot of cases:
__init__()
__()__
(_)(__)(___)
@groupby(_.a) |>
@map({a = key(_), b = mean(_.b)}) |>
As you can see, for functions like __init__(), and for code with more than one _ in () or (_.x), it will break.
I suppose a possible fix would be: whenever there is one or more _ next to a ( or a ), _ should be pulled down a little and ( or ) will be stretched.
Hi! Yes, it was a quick hack to get the Julia start-up banner to look a bit tidier (think t-shirts 😀) and it would be ideal if we could switch SS20 off automatically once the banner had been displayed... I have thought about removing SS20 - but perhaps it's fixable with some more effort on my part.
I think at least (_.a) should be a quick fix. Perhaps only allow (_) working.
I had another look at this; there are some technical problems that stop me from doing the job properly: I can't find patterns that span the ANSI color escapes, and I can't use space as part of the search pattern. Not to mention that the stylistic sets aren't supported in every application...
So I've ended up with just (_) and a few continuous runs of glyphs that can be tweaked:
In Wezterm:
In VSCode Editor:
current master:
your "why not...""
I don't really mind either way...