Skip to content

feat(but): make ids bold instead of underlined#12397

Merged
slarse merged 2 commits intomasterfrom
replace-underline-with-bold
Feb 17, 2026
Merged

feat(but): make ids bold instead of underlined#12397
slarse merged 2 commits intomasterfrom
replace-underline-with-bold

Conversation

@slarse
Copy link
Contributor

@slarse slarse commented Feb 17, 2026

🧢 Changes

Makes IDs in the CLI bold instead of underlined to increase readability. There are some before/after SVG comparisons in 82c1fc3, but I don't really think they do the changes justice. Here are some samples from my terminal with before followed by after (but is the before, but-debug is the after):

Status

This is the one I had the most trouble reading, with e.g. p, q and y cutting through the underline. I was quite literally squinting at the text, and among other things mistook a y for a v at some point (see the branch yv-demo at the bottom, y and v look very similar to my eyes when underlined).

status

Oplog

oplog

Diff

diff

URLs

And URL's are left unchanged, still underlined:

url

Copilot AI review requested due to automatic review settings February 17, 2026 16:37
@vercel
Copy link

vercel bot commented Feb 17, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
gitbutler-web Ignored Ignored Preview Feb 17, 2026 7:12pm

Request Review

@github-actions github-actions bot added rust Pull requests that update Rust code CLI The command-line program `but` labels Feb 17, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves CLI readability by changing the styling of ID displays from underlined to bold. IDs include commit IDs, CLI IDs, stack IDs, and other identifier strings throughout the but CLI tool.

Changes:

  • Replaced .underline() with .bold() for all ID displays across the CLI codebase
  • Maintained existing method chaining patterns (.blue().bold() or .bold().blue() as per existing code)
  • Correctly preserved underline styling for URLs and headers (which are not IDs)

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
crates/but/src/command/legacy/status/mod.rs Updated ID styling in status display, including stack IDs, CLI IDs, commit IDs, and change IDs
crates/but/src/command/legacy/rub/squash.rs Updated ID styling in squash error messages
crates/but/src/command/legacy/rub/move.rs Updated source and target ID styling in move operation error messages
crates/but/src/command/legacy/rub/mod.rs Updated ID styling in various rub command error messages (uncommit, amend, stage, unstage)
crates/but/src/command/legacy/rub/amend.rs Updated commit ID styling in amend success messages
crates/but/src/command/legacy/oplog.rs Updated snapshot/commit ID styling in oplog display and restore operations
crates/but/src/command/legacy/diff/display.rs Updated ID styling in diff display for hunk assignments

@slarse slarse requested a review from PavelLaptev February 17, 2026 19:20
@slarse slarse merged commit a8c5867 into master Feb 17, 2026
28 checks passed
@slarse slarse deleted the replace-underline-with-bold branch February 17, 2026 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLI The command-line program `but` rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants