v2.0.0-beta.2: Breakdown categories, gitignore patterns, Linguist mapping (test build)
Pre-releaseTest build of the breakdown categories feature, second generation. Supersedes v2.0.0-beta.2. Not a store release: install it manually as described below, and disable the store version of the extension while testing so the counts are not replaced twice.
Breaking change: patterns now follow .gitignore rules
Anything copied from a .gitignore behaves the same way here. A name without a slash matches at any depth; a pattern containing a slash is anchored to the repository root (prefix it with **/ to match at any depth); a trailing / matches everything inside a directory; ! removes files matched by earlier lines, last match wins; # starts a comment. Brace expansion and extglobs are no longer expanded. Matching is case-insensitive.
If you saved custom patterns in an earlier beta, check any that contain a slash, such as docs/**: they now match only from the root.
Changes since beta.1
- Compare pages that only name the head, such as the pull request creation page against the default branch (
/compare/feat/foo), now work. The base is looked up from the repository's default branch.
New in 2.0
- Nine default categories tuned for popular ecosystems and tools: Agents, Tests, CI/CD, Infrastructure, Database, i18n, Dependencies, Configs, Docs. Agents covers instruction files, rules, skills, specs, and plans for coding agents (Claude Code, Codex and AGENTS.md, Cursor, Copilot, Windsurf, Cline, Gemini, Aider, Kiro, Spec Kit,
.planning/, and more). - Generated list refreshed: more lockfiles, generated-code suffixes, vendored directories, wrapper scripts, and
dist/. - Linguist Attributes section: map
linguist-generated,linguist-vendored, andlinguist-documentationfrom a repo's.gitattributesto the generated list, to a category, or to nothing. - Presets: add Styles, Assets, Notebooks, Schemas, Benchmarks, or Scripts with one click.
- Path Tester: type a path and see where the current lists put it, and which line decided.
- Import & Export of all settings except the access token.
- Palette grows to twelve colors, plus a custom color swatch.
- Restore Defaults for the generated list as well as the categories.
Coming from an earlier beta
Saved lists do not update themselves. Open the options page and click Restore Defaults in both the Generated Files and the Breakdown sections to adopt the new defaults, then Save Changes.
Install
Chrome / Edge / Brave
- Download and unzip
github-better-line-counts-2.0.0-beta.2-chrome.zip. - Open
chrome://extensions, turn on Developer mode, click Load unpacked, and select the unzipped folder.
Firefox
This build is not signed by Mozilla, which limits how it can be installed:
- Any Firefox, temporary: open
about:debugging#/runtime/this-firefox, click Load Temporary Add-on…, and selectgithub-better-line-counts-2.0.0-beta.2-firefox.xpi. The add-on is removed when Firefox quits. - Developer Edition, Nightly, or ESR, permanent: in
about:configsetxpinstall.signatures.requiredtofalse, then inabout:addonsuse the gear menu, Install Add-on From File…, and select the.xpi. - Regular Firefox and Beta refuse unsigned add-ons, so only the temporary route works there.
What to test
- Hover the counts on PRs, single commits, and compare pages in repos from different ecosystems, and check which category each kind of file lands in.
- Use the Path Tester to probe paths from your own repos; report misclassifications with the path and the category you expected.
- Try presets, the Linguist mapping, and export followed by import.
Please report problems at https://github.com/Kit-p/github-better-line-counts/issues.
Built from ab7d8cf on feat/breakdown-categories. The version was set to 2.0.0-beta.2 for this build only; package.json on the branch is unchanged. The Firefox build declares the add-on id github-better-line-counts-beta@kit-p.github.io.