What's new in GitPlume: change stats, quick edits, and lots of polish

What's new in GitPlume: change stats, quick edits, and lots of polish

GitPlume is my very own command line git companion: a comfy sidekick for your coding agent of choice, so you can monitor what the agent is doing, and generally navigate the repo in a nice text-based UI.

It's been a few weeks since I ported GitPlume to Rust, and in the meantime I've been using it every day. Using your own tool every day is the best way to find all the little things that bug you about it, so I've been fixing them one release at a time.

Here are all the updates it's had since then.

How big is this change?

One of the main things I'm looking at when doing refactorings with AI is: are we reducing the complexity, or creating more of it? Having a quick way to see how many lines of code have been added or removed is key here. This is now shown in three places: in the currently opened diff's header, and on the Staged and Unstaged section headers.

You can also click a section header to check or uncheck every file in it, which makes bulk staging and unstaging a single click.

screenshot of gitplume highlighting the changed lines status
Screenshot from my house tracker repo :)

Edit files without leaving GitPlume

This is the big one. Open a file in any tab (a change, a file from the Files tab, or a search result from Find), press e, and GitPlume hands the whole terminal over to your editor. When you close the editor, you're right back where you were, and the diff or preview is reloaded with your changes.

GitPlume uses the same editor as Git, so if you've ever configured core.editor, GIT_EDITOR, VISUAL or EDITOR, it will just work. If you haven't, it falls back to nano.

If you want GitPlume to use a different editor than Git does, you can override it with GITPLUME_EDITOR:

GITPLUME_EDITOR='nvim' gitplume
GITPLUME_EDITOR='code --wait' gitplume

This is super convenient for quick edits or writing blog posts. Personally, I'm a big fan of the micro editor! It has everything I need from an editor, and nothing I don't. Perfect for writing blog posts without any distractions.

.gitignored files and folders in the Files tab

.gitignored files and folders are now visible in the Files tab so you can quickly look at their contents (and edit them by pressing e 😉).

.gitignored files show up in the files tab
.gitignored files and folders are visible, grayed out, in the files tab

File jump (t) and Find still leave ignored files out, so your node_modules won't pollute your searches.

Syntax highlighting for more languages

GitPlume now highlights:

  • HCL, so your Terraform files look as good as the rest of your code
  • Dockerfiles and Containerfiles
  • PowerShell and dotfiles
  • XML
  • GLSL shaders
  • Zig

That's on top of the 20 languages it already supported, including Rust, Python, TypeScript, Go, C# and friends.

(And if you are working with Terraform, Terraform State Viewer can help you make sense of your statefiles!)

Small things that add up

  • Gutter improvements. The gutter (the area with line numbers on the left side of the currently opened file) now looks much nicer, with slightly darker colours. It also goes all the way down the screen.
  • More ways to get help. Besides h, you can now press ? or F1 to see the keyboard shortcuts.

Bug fixes

  • No more phantom refreshes. GitPlume watches your repository for changes, but it was also reacting to files simply being read, including by its own searches and previews. Now only actual changes trigger a refresh, and your Find selection stays put.
  • The Files tree keeps its place. Background refreshes no longer reset the scroll position of the Files tab.
  • Better wrapped lines. When wrapping is on (w), continuation lines keep out of the gutter.

Performance improvements

  • Smoother redraws. Some screen tearing was noticeable when running GitPlume inside a multiplexer and scrolling horizontally, especially on Mac. Each frame now reaches the terminal in one synchronized update, so it looks buttery smooth everywhere.

Upgrading

If you installed GitPlume with the installer, just run it again to get the latest version:

curl -fsSL https://github.com/LBognanni/gitplume/releases/latest/download/install.sh | sh

Or, if you have a Rust toolchain:

cargo install --locked gitplume

New to GitPlume?

Head over to gitplume.dev to see what it looks like and get started.

Filed under , ,