Skip to content
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

Extend and tweak branch drawing symbols based on feedback #7805

Merged
merged 2 commits into from
Aug 30, 2024

Conversation

rbong
Copy link
Contributor

@rbong rbong commented Aug 30, 2024

I have been working with other terminal branch viewer authors to determine how they feel about the new extended branch characters.

The first change is to make commit circles slightly larger. There has been feedback that the circles are too small, which I agree with.

The second change is to add more commit symbols with branches connected to them at various angles.

Here are all the symbols, with the new symbols in the last two rows:

all symbols

It can be hard to see what the new symbols are with the large commit circles, so here they are with lines next to them that show how they're connected:

new symbols only

The new symbols allow drawing the commit graph with branches merging directly into the commit rather than showing merges/forks on separate lines from commits.
My original goal was to provide a way to draw branches in every possible way.
This way was something I originally missed.

In case you think this will be a pattern, I believe the likelihood of realizing we could add a significant number of new branch symbols after this is low.
I did think of these symbols before, I just didn't think they would be useful.
There are only so many variations you can add, and this covers the rest of the possibilities as far as I can tell.

The new symbols still don't get close to any other symbol sets included in Nerd Fonts or Fira Code.

These look unnaturally small on some screen sizes.
These symbols allow drawing branches merging into or forking out of
commits directly rather than requiring that merges/forks are rendered on
their own line.
@kovidgoyal kovidgoyal merged commit 0105536 into kovidgoyal:master Aug 30, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants