Skip to content

feat: a terminal under the graph, with a shell that knows whose repository it is in - #14

Merged
FrancescBagur merged 1 commit into
masterfrom
feat/terminal
Nov 13, 2026
Merged

FrancescBagur merged 1 commit into
masterfrom
feat/terminal

Conversation

@FrancescBagur

Copy link
Copy Markdown
Owner

What this changes

There is a terminal in the window: a Terminal button at the end of the action bar and Control and backtick open a panel under the graph with a shell in the repository's folder, one per tab.

What was decided

  • How it behaves was read out of GitKraken's bundle, not guessed. The three states of the panel (hidden, minimized, expanded), what each button on its bar does to the shell (fold, kill, hide and leave running), a shell that exits taking the panel with it, the context menu, Control and C that copies when something is selected and interrupts when nothing is, and the preferences with their limits.
  • The emulator is alacritty_terminal, eleven crates. The alternative was reading escape sequences here. A reader of them that is nearly right is a terminal where git log works and vim and git rebase -i nearly do, and this one also brings the Windows pseudo-terminal. What is drawn is drawn here: Fira Mono, bold by striking twice because there is only the regular weight, and the box-drawing and block characters by hand, since the font's own do not reach from one row to the next at a line height of 1.2.
  • The shell knows whose repository it is in. It starts with the name, the address and the key of the profile the repository is filed under, so a commit typed in it is the same person a commit made with the button would be. They are read when the shell starts: a profile changed afterwards is taken on by the next shell.
  • A checkout on another machine gets a shell on that machine, over ssh, in its folder.
  • The graph keeps up with what is typed. Nothing watches the disk, so the repository is looked at when the shell goes quiet, and read again only if a branch, HEAD, the stashes or what is half-done moved. Not on a remote checkout, where looking is a round trip on the thread that paints.
  • Not there, and said so in the README: GitKraken's autocomplete suggestions, a choice of typeface, and letters the bundled fonts lack.

Checked

  • cargo test passes here, not just in CI -- 395 at this commit, thirteen of them new
  • It was run -- on Linux, on a virtual display and then on a desk: colours, vi, a pager, top, selection, copy and paste, links, the menu, resize, exit, Kill, the panel coming back as it was left. Not on macOS or Windows: this adds a dependency that has never been built on either, and the two CI builds here are the first time
  • Anything that writes (index, stash, branches, remote) or touches the graph layout carries a test -- none of that is touched; the new settings lines have theirs
  • Commits are signed off (git commit -s) and read as sentences

🤖 Generated with Claude Code

…itory it is in

There is a Terminal button at the end of the action bar and Ctrl+` does
what it does: a panel opens under the graph, between the two side
panels, with a shell in the repository's folder. Each tab has its own.
The bar over it folds the panel, kills the shell or hides it and leaves
the shell running; a shell that exits takes the panel with it. Whether
it was open, and how tall, is remembered.

How it behaves was read out of GitKraken's bundle before any of it was
written -- the three states of the panel, what each button does to the
shell, the context menu, Ctrl+C that copies when something is selected
and interrupts when nothing is, the preferences and their limits. The
preferences are the ones that could be made to act: font size, line
height, cursor style, dimming when unfocused, and which shell.

Three things are here that are not there. The shell is started with the
name, the address and the key of the profile the repository is filed
under, so a commit typed in it is signed the way one made with the
button would be. A checkout on another machine gets a shell on that
machine, over ssh, in its folder. And since nothing here watches the
disk, the repository is looked at again once the shell has gone quiet,
and reloaded only if something moved -- a commit typed in the panel
turns up in the graph by itself.

The emulator is alacritty_terminal, eleven crates. A terminal that is
nearly right is one where vim and an interactive rebase are nearly
usable, and this one also brings the Windows pty. What is drawn is
drawn here: Fira Mono, bold by striking twice since there is only the
regular weight, and the box-drawing and block characters by hand, as
the font's own do not reach from one row to the next.

Not there: GitKraken's autocomplete suggestions, a choice of typeface,
and any letter the two bundled fonts lack. The profile is read when the
shell starts, so changing it applies to the next shell.

Run on Linux, on a virtual display. Read out of the code and not seen
on macOS or Windows, and the shell on another machine has not been
opened against one -- only the command it sends was tried, locally.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Francesc <francesc.bagur@coffeesoftware.io>
@FrancescBagur
FrancescBagur merged commit 7f13907 into master Nov 13, 2026
3 checks passed
@FrancescBagur
FrancescBagur deleted the feat/terminal branch November 13, 2026 06:52
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.

1 participant