-
Notifications
You must be signed in to change notification settings - Fork 355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cli: replace o
as graph node by ●
#1359
Conversation
a0146b3
to
8533d50
Compare
The character It's okay for unicode graph (since some of the graph characters have this problem anyway), but better to not use non-ascii character for ascii graphs. |
8533d50
to
d0a1240
Compare
Makes sense. I've updated it to still use |
d0a1240
to
cd11a90
Compare
The command grepped for 'o ' and picked the third line. That was meant to match the graph nodes only, but it also matched the 'jj co master' line. Let's match only 'o' at the beginning of the line, and throw in another space for good measure (since that's what we get from the new default graph style from Sapling).
I'm about to make the default (non-working-copy) node symbol be a unicode symbol, but we only want that when using a unicode graph, so users with a terminal that doesn't support unicode can get plain ASCII output by setting e.g. `ui.graph.style = "ascii"`.
@joyously found `o` confusing because it's a valid change id prefix. I don't have much preference, but `●` seems fine. The "ascii", "ascii-large", and "legacy" graph styles still use "o". I didn't change `@` since it seems useful to have that match the symbol used on the CLI. I don't think we want to have users do something like `jj co ◎-`.
cd11a90
to
96258b4
Compare
I didn't hear any objections, so I updated the screenshots. |
Too late to the party, but I've just noticed this after updating In the end those symbols should probably be customizable by a config Also another (very slight) collision is the unicode symbol being very geometric and unicode-y and plain boring @ contrasts with it (slightly) unpleasantly as well 🤷, maybe thats just me though |
Yes, that makes sense.
It's not just you - I feel the same way. I really don't want to change the |
I'll update the screenshots if people like this change.
Checklist
If applicable:
CHANGELOG.md