https://github.com/Artawower/blamer.el Skip to content Sign up * Why GitHub? Features - + Mobile - + Actions - + Codespaces - + Packages - + Security - + Code review - + Issues - + Integrations - + GitHub Sponsors - + Customer stories- * Team * Enterprise * Explore + Explore GitHub - Learn and contribute + Topics - + Collections - + Trending - + Learning Lab - + Open source guides - Connect with others + The ReadME Project - + Events - + Community forum - + GitHub Education - + GitHub Stars program - * Marketplace * Pricing Plans - + Compare plans - + Contact Sales - + Education - [ ] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this user All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up {{ message }} Artawower / blamer.el Public * Notifications * Star 98 * Fork 1 * A git blame plugin for emacs inspired by VS Code's GitLens plugin GPL-3.0 License 98 stars 1 fork Star Notifications * Code * Issues 0 * Pull requests 0 * Actions * Projects 0 * Wiki * Security * Insights More * Code * Issues * Pull requests * Actions * Projects * Wiki * Security * Insights master Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags 2 branches 1 tag Code Latest commit @Artawower Artawower Change description ... 97fe73d Oct 24, 2021 Change description 97fe73d Git stats * 52 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time .github/workflows Tests Oct 18, 2021 images Update preview Oct 19, 2021 .gitignore gitignore, readme update, fix long line blame Oct 18, 2021 LICENSE Create LICENSE Oct 17, 2021 README.org Refactoring Oct 24, 2021 blamer.el Change description Oct 24, 2021 test.el Right alignment, update tests Oct 22, 2021 View code [ ] Blamer.el Preview Install quelpa doom Customization Blamer view Template for author name Template for datetime Template for commit message Time before blame showing Minimum offset from start from line Prettify time Blamer type Max blamer lines in selected mode Message for uncommitted changes Max commit message length Contribute Blamer.el plans [15/15] README.org Blamer.el [evil-monk] https://github.com/artawower/blamer.el/actions/workflows/lint.yml/ badge.svg A git blame plugin for emacs inspired by VS Code's GitLens plugin and Vim plugin Preview ./images/preview.gif Install Emacs 27.1 is required. quelpa (use-package blamer :quelpa (blamer :fetcher github :repo "artawower/blamer.el") (blamer-idle-time 0.3) (blamer-min-offset 70) :custom-face (blamer-face ((t :foreground "#7a88cf" :background nil :height 140 :italic t))) :config (global-blamer-mode 1)) doom ;; packages.el (package! blamer :recipe (:host github :repo "artawower/blamer.el")) ;; config.el (use-package blamer :defer 20 :custom (blamer-idle-time 0.3) (blamer-min-offset 70) :custom-face (blamer-face ((t :foreground "#7a88cf" :background nil :height 140 :italic t))) :config (global-blamer-mode 1)) Customization Blamer view Current style for blame messages, now can be `overlay` and `overlay-right`. (setq blamer-view 'overlay) Template for author name (setq blamer-author-formatter " %s ") Template for datetime (setq blamer-datetime-formatter "[%s]") Template for commit message (setq blamer-commit-formatter "* %s") All formatters can be nil. [formatted] Time before blame showing (setq blamer-idle-time 0.5) Minimum offset from start from line (setq blamer-min-offset 40) Prettify time (setq blamer-prettify-time-p t) Will format time line (2 days ago/1 week ago/Yesterday etc) Blamer type (setq blamer-type 'both) Can accept * ='selected= - blamer will show commit info for every selected line. * ='visual= - blamer will show info only about one line. * ='both= - works with both states. Max blamer lines in selected mode If more then 30 lines will selected, blamer will not try to execute git commands. (setq blamer-max-lines 30) Message for uncommitted changes (setq blamer-uncommitted-changes-message "NO COMMITTED") Max commit message length If line has length more then this value, text will be truncated (setq blamer-max-commit-message-length 10) Contribute Run before push emacs -batch -l ert -l blamer.el -l test.el -f ert-run-tests-batch-and-exit Blamer.el plans [15/15] * [X] Get necessary information about current line under cursor * [X] Get commit info by current hash (if necessary) * [X] Get background color if hl-mode is exist and enabled (transparency) * [X] Visualize information in special format * [X] blamer-mode implementation * [X] Write tests for regexps * [X] IDLE time before showing * [X] Special font for blame. * [X] Truncate long commit line * [X] Add pretty date format * [X] Pretty author name * [X] Add support for common line number changed (might be deleted from external source, or evil keys) * [X] Add support for global mode * [X] Add support for multi line selection * [X] Canonical blamer format + templates. About A git blame plugin for emacs inspired by VS Code's GitLens plugin Topics git emacs emacs-lisp gitlens blamer Resources Readme License GPL-3.0 License Releases 1 Multiple view Latest Oct 23, 2021 Packages 0 No packages published Contributors 2 * @Artawower Artawower Art * @wbolster wbolster wouter bolsterlee Languages * Emacs Lisp 100.0% * (c) 2021 GitHub, Inc. * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.