Repository navigation
feat: a terminal under the graph, with a shell that knows whose repository it is in - #14
Merged
Merged
Conversation
…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>
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
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
alacritty_terminal, eleven crates. The alternative was reading escape sequences here. A reader of them that is nearly right is a terminal wheregit logworks andvimandgit rebase -inearly 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.ssh, in its folder.Checked
cargo testpasses here, not just in CI -- 395 at this commit, thirteen of them newvi, 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 timegit commit -s) and read as sentences🤖 Generated with Claude Code