TamaMcGlinn / git-forest

git-forest is a visual terminal tree viewer to replace `git log --graph`
3 stars 1 forks source link

Use better characters for "jumping over" branches #9

Open rbong opened 2 years ago

rbong commented 2 years ago

Right now git-forest uses triple bar ("≡") (unicde 2261) to display "jumping" over branches.

I have been exploring other characters, and it may show up more naturally if you use upper half circle ("◠") (unicode 25e0) followed by box drawing right line ("╶") (unicode 2576) or horizontal line ("─") (unicode 2500).

On my terminal, the half circle covers 1.5 characters, but in other fonts it covers only 1. One of these should show up correctly in GitHub:

─◠╶
─◠─

This is more in line with how other branch viewers show skipping over branches, and in my opinion, looks nice, but the half-circle may look a little small using some fonts. Here's how it looks in my terminal (not using git-forest).

2022-01-09-011443_705x254_scrot

rbong commented 2 years ago

Update: with a better font, looks good.

2022-01-09-021548_1005x767_scrot