DAGIT DEVLOG 4
Yoo!
I’ve made soo many updates and the resizing /clipping issues are still eating my brain like bugs

Progress overview
-
Decreased the sizes of reference being displayed also truncated lines in the gitlog so that the vertical clipping stops
-
I completely styled the UI using lipgloss and it looks soo much better now

-
Added highlighting to the head of the repo that pops a little more
-
Refactored the old way of refreshing the data
-
Refactored the code to increase readability
Explain
-
The git logs were looking odd because when the commit messages were long , the log that should only take the space of one line was now also taking space in the second line. So we fixed it using
truncateMessages()function -
As we are pushig to multiple
tags. The reference also gets long and causes a clipping issue again. So we again simply dosent let the refs be that long[But the current implementation can cause the line to break suddenly that may not look good all the time]-
// Stop 'refs' being too long
if lipgloss.Width(refs) > 30 {
refs = refs[:27] + "..."
}
- And as
dagitis a live visualizer, I removed the old way of refreshing the data[clicking [r] to refresh]. Now what we do is usetea.Tickand thetimelibrary to refresh the data every 1 second.
Issues that can be caused
- We are currently refreshing data every second that can put a lot more load on the system when used inside a big repository, So in infuture I’m gonna work to give the user a way to choose the tick Rate
What im gonna work on now
- Scrollbar for gitlog and also visualizer
- A tick rate selector
- File status panel that can be toggled with the visualizer
- A way to search for different repo’s in the user’s computer and jumping between them(something like the nvim feature of finding files) –im not really sure of this
Comments 2
W utility
Thanks!
Sign in to join the conversation.