-
-
Notifications
You must be signed in to change notification settings - Fork 120
Using colors to enhance visualizations #69
-
@abhijitnathwani @paketb0te Considering the visual nature of this tool, I think it's perfect for using colors to enhance the user experience and add additional information to the Git simulations where it makes sense.
For starters, I just released v0.2.7 which has the new global option --color-by=author.
This recolors the commit circles after drawing the graph based on the author of each commit and includes the color-coded author name in the frame along with the number of commits they authored:
Merge:
git-sim-merge_03-06-23_22-27-16
Rebase:
git-sim-rebase_03-06-23_22-30-00
Log Animation:
git-sim-log_03-06-23_23-24-48.mp4
I can see us extending this to stuff like:
- coloring branches
- color commits by date range
- coloring commits that touch specific files
- etc
If you have any ideas for cool ways we can use color to create new Git-Sim features, would love to hear them =)
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 2 comments 1 reply
-
This is cool!
Beta Was this translation helpful? Give feedback.
All reactions
-
🎉 1
-
Neat!
I think we can organize the coloring options nicely using an Enum, see #80
This will serve two purposes,
a) make all the options visible when using git-sim --help
b) makes the string comparison in the color_by() function less error-prone, since most IDEs will immediately show an error when trying to use a nonexistent Enum member.
Beta Was this translation helpful? Give feedback.
All reactions
-
Smart. Yes I agree let's do this!
Let me know if you can think of any other cool color-based features we could add into Git-Sim.
Beta Was this translation helpful? Give feedback.