Repository navigation
feat: every column of the graph is as wide as you drag it, and stays that way - #19
Open
FrancescBagur wants to merge 1 commit into
Open
FrancescBagur wants to merge 1 commit into
FrancescBagur wants to merge 1 commit into
Conversation
…that way The edges between the columns can be dragged: the branches' column, the lanes, and author, date and hash on the right. There is a strip of names above the rows now, with a tick at each edge, and an edge can be taken hold of there or anywhere down the graph. The line that says so shows only under the pointer, so the rows are still read without one. Each edge moves one column and the message takes up the difference. A column stops at thirty-two points -- the lanes at one lane and its gutters -- and a drag stops when the message is down to what it needs, so widening one column never makes another withdraw. The lanes open as far as there are lanes, which is further than the eight they come with. Double-clicking an edge sends its column back to how it came. How GitKraken does it was read out of its bundle first: a width and a floor per column, a handle on each edge in the header and down the column, the neighbours giving way, and the width written down when the handle is let go of. Hiding columns and putting them in another order, which it also has, are not in this. The widths are the window's and not a repository's, like the height of the terminal: `graph-column <name> <points>` in the settings, and only for a column that was dragged. One left alone still measures the names it holds, or counts its lanes. The date and the hash are cut with an ellipsis when their column is narrower than they are. They were never cut before, because they could not be narrower. tools/poke learns `press` and `release`. A drag is a button held down while the pointer moves, and it could only click. Tried on Linux on an Xvfb: each edge dragged, two double-clicked back, the window closed and opened again to the same widths, a row clicked afterwards. Nothing of it has been seen on macOS or Windows. Signed-off-by: Francesc Bagur <francesc.bagur@coffeesoftware.io> Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
FrancescBagur
force-pushed
the
feat/graph-column-widths
branch
from
December 1, 2026 09:06
72ba30c to
da3061d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
Every edge between two columns of the graph can be dragged, and the width it is left at is remembered.
graph-column <name> <points>, only for a column that was dragged.What was decided
How GitKraken does it was read out of its bundle first (a width and a floor per column, a handle on each edge in the header and down the column, the width written down when the handle is let go of), and this follows it, with three differences:
Two things a reviewer might not expect:
tools/poke.clearnspressandrelease. A drag is a button held down while the pointer moves, and it could only click, so this could not have been run without it.Checked
cargo testpasses here, not just in CI (420, eleven of them new)tools/poke: each edge dragged, two double-clicked back, the window closed and opened again to the same widths, a row clicked afterwards. Linux only; nothing of it has been seen on macOS or Windows.graph layout carries a test -- the column layout is a function of its own now, with nine tests, and the setting has two
git commit -s) and read as sentences🤖 Generated with Claude Code