Making git-pkgs feel like Git
nesbitt.io·1w
🔀JJ
Preview
Report Post

Since releasing git-pkgs I’ve been focused on one thing: making it feel like you’re using git, not some tool that happens to work with git.

Git has strong conventions for colors, pagers, environment variables, and configuration that users expect without thinking about them. I wrote about extending git a while back, covering the extension points git provides. But knowing the patterns exist is different from implementing them well. If your subcommand ignores these conventions, it feels foreign. Getting them right is fiddly, but people notice when you skip them.

Colors now respect NO_COLOR, color.ui, and a tool-specific color.pkgs setting.…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help