{"id":15008062,"url":"https://github.com/izuzak/blame","last_synced_at":"2026-03-11T09:32:32.360Z","repository":{"id":255928166,"uuid":"853892436","full_name":"izuzak/blame","owner":"izuzak","description":"TUI for navigating file blames similar to GitHub's web UI","archived":false,"fork":false,"pushed_at":"2025-10-12T06:51:56.000Z","size":498,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-14T17:02:25.156Z","etag":null,"topics":["git","git-blame","rust","tui"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/izuzak.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-09-07T20:32:04.000Z","updated_at":"2026-01-05T07:18:21.000Z","dependencies_parsed_at":"2024-09-07T22:50:39.436Z","dependency_job_id":"27e77bd8-c9f8-4e2f-b055-59f8b593a0ae","html_url":"https://github.com/izuzak/blame","commit_stats":null,"previous_names":["izuzak/blame"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/izuzak/blame","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izuzak%2Fblame","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izuzak%2Fblame/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izuzak%2Fblame/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izuzak%2Fblame/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/izuzak","download_url":"https://codeload.github.com/izuzak/blame/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izuzak%2Fblame/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30377278,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T06:09:32.197Z","status":"ssl_error","status_checked_at":"2026-03-11T06:09:17.086Z","response_time":84,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git","git-blame","rust","tui"],"created_at":"2024-09-24T19:14:55.772Z","updated_at":"2026-03-11T09:32:32.334Z","avatar_url":"https://github.com/izuzak.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Blame\n\nA TUI for navigating file blames similar to GitHub's web UI experience.\n\n## Screenshot\n\n![screenshot](screenshot.png)\n\n## Motivation\n\nThis is a toy project to help me learn Rust while building something I find useful.\n\n## Features\n\n* **Syntax highlighting of file contents.** Auto-detects file type based on the file's extension.\n* **Easy time travel through the file's blame history.** Move through the file's blame history via the parent-child relationship of each line's commit.\n* **Move through blame contents by line or block.** A block is a contiguous group of lines last modified by the same commit.\n\n## Installation\n\n```sh\ngit clone https://github.com/izuzak/blame\ncd blame\ncargo build --release\n# the target/release directory contains the \"blame\" binary now\n# you can move it to a directory in your PATH or run it directly\n```\n\n## Running\n\n```sh\n# file - path to a file\n# ref - a commit hash, branch, or tag\nblame \u003csome/git/repo/filepath\u003e \u003cref\u003e\n\n# Example: blame the src/main.rs file in the Git repository for the project\nblame src/main.rs HEAD\n```\n\n## Usage\n\nKeyboard navigation:\n* `up` - move selection to line above.\n* `down` - move selection to line below.\n* `}` - move selection to first line of block above.\n* `{` - move selection to first line of block below.\n* `left` - travel backwards in time: show the blame for the file at the parent of the commit which changed the current line.\n* `right` - travel forwards in time: show the blame for the file and the commit from which we arrived at the current commit.\n* `q` - exit the program.\n\n## Dependencies\n\n* [`clap`](https://github.com/clap-rs/clap) - Command line argument parsing.\n* [`crossterm`](https://github.com/crossterm-rs/crossterm) and [`ratatui`](https://github.com/ratatui/ratatui) - Terminal user interface.\n* [`regex`](https://github.com/rust-lang/regex) - Git blame output parsing.\n* [`syntect`](https://github.com/trishume/syntect) and [`ansi-to-tui`](https://github.com/ratatui/ansi-to-tui) - Syntax highlighting.\n\n## Ideas for future work\n\n- Write tests.\n- Publish the project on crates.io.\n- Show stack of commits navigated through to reach current commit.\n- Indicator for how recent a line's commit was, e.g. by color or some character.\n- Jump to a line by number.\n- Jump to a line by searching contents.\n- File picker for selecting the file for blame.\n- Commit picker for selecting the commit for blame.\n- Config file for customizing keybindings, colors, columns, and column widths.\n- Show/hide columns and change column widths at runtime.\n- Show help screen after pressing `?`.\n- Loading indicator in case of slow loading in repositories with large histories.\n- Open the file, blame or commit in the editor/browser.\n- Improve performance:\n  - Cache the full file blame so that it doesn't need to be regenerated when re-visiting the same commit.\n  - Parse blame info from Git's porcelain blame command, which is intended for machine consumption.\n  - Reduce cloning the same information multiple times.\n  - Concurrent loading of commit information.\n\n## License\n\n[MIT license](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fizuzak%2Fblame","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fizuzak%2Fblame","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fizuzak%2Fblame/lists"}