Tcloc: Treemap Count Lines of Code

rmarquis2 pts0 comments

GitHub - leonardcser/tcloc: Lines of code treemap TUI · GitHub

/" data-turbo-transient="true" />

Skip to content

Search or jump to...

Search code, repositories, users, issues, pull requests...

-->

Search

Clear

Search syntax tips

Provide feedback

--><br>We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Cancel

Submit feedback

Saved searches

Use saved searches to filter your results more quickly

-->

Name

Query

To see all available qualifiers, see our documentation.

Cancel

Create saved search

Sign in

/;ref_cta:Sign up;ref_loc:header logged out"}"<br>Sign up

Appearance settings

Resetting focus

You signed in with another tab or window. Reload to refresh your session.<br>You signed out in another tab or window. Reload to refresh your session.<br>You switched accounts on another tab or window. Reload to refresh your session.

Dismiss alert

{{ message }}

leonardcser

tcloc

Public

Notifications<br>You must be signed in to change notification settings

Fork

Star

main

BranchesTags

Go to file

CodeOpen more actions menu

Folders and files<br>NameNameLast commit message<br>Last commit date<br>Latest commit

History<br>17 Commits<br>17 Commits

.claude/worktrees

.claude/worktrees

assets

assets

src

src

.gitignore

.gitignore

Cargo.lock

Cargo.lock

Cargo.toml

Cargo.toml

LICENSE

LICENSE

README.md

README.md

View all files

Repository files navigation

tcloc

A performant TUI that renders a live treemap of your codebase, sized by lines<br>of code and colored by language. Inspired by<br>cloc.

Install

cargo install --git https://github.com/leonardcser/tcloc<br># or from a local clone<br>cargo install --path .

Usage

tcloc [PATH]

Scan the current directory:

tcloc

Scan only files tracked by git:

tcloc --vcs git

Views

Tab cycles between three views:

tree — folders and files at the current depth.

files — every file flattened, regardless of depth.

nested — full hierarchy at once. Each folder is a darker container of its<br>dominant language; its children sit inside it, recursively.

Navigation

Input<br>Action

hjkl / arrow keys<br>Move selection

Enter<br>Zoom into the selected folder

Esc / Backspace<br>Go up one level

Tab<br>Cycle view

Open the selected file in $EDITOR

Left-click a folder<br>Zoom in

Right-click<br>Go up

Mouse wheel on legend<br>Scroll the language list

q / Ctrl-C / Ctrl-D<br>Quit

Options

Flag<br>Description

--vcs<br>Use a VCS to enumerate files (only git supported)

-j, --threads<br>Worker threads (default: logical CPUs)

--max-file-size<br>Skip files larger than N MB (default: 100)

--exclude-dir<br>Comma-separated directory names to skip

--include-dir<br>Comma-separated top-level directory names to include

--exclude-ext<br>Comma-separated file extensions to exclude

--include-ext<br>Comma-separated file extensions to include

--exclude-lang<br>Comma-separated languages to exclude

--include-lang<br>Comma-separated languages to include

-H, --hidden<br>Include hidden files and directories

-I, --no-ignore<br>Do not honor .gitignore / .ignore

-L, --follow-links<br>Follow symbolic links

-w, --watch<br>Watch the scan root and apply incremental updates on file change

-b, --bench<br>Show a live performance HUD and print a benchmark report on exit

--auto-exit-ms<br>Exit N ms after the scan finishes (useful with --bench)

Run tcloc --help for the full list.

About

Lines of code treemap TUI

Resources

Readme

License

MIT license

Uh oh!

There was an error while loading. Please reload this page.

Activity

Stars

star

Watchers

watching

Forks

forks

Report repository

Releases

No releases published

Contributors

Uh oh!

There was an error while loading. Please reload this page.

Languages

Rust<br>100.0%

You can’t perform that action at this time.

tcloc files include file cargo comma

Related Articles