npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

atom-git-blame

v0.4.11

Published

Toggle git-blame annotations in the gutter of atom editor.

Downloads

1

Readme

#git-blame

Toggle git-blame annotations for the current file in the gutter of atom editor.

screenshot

Usage

Toggling the gutter

There a few ways to toggle the git-blame gutter.

Right Click

Right click the file you want to blame. Select Toggle Git Blame options from the dropdown.

right-click-activate

Keyboard Shortcut

Show git blame for the currently active editor with the command ctrl-b. An editor pane is active if the the cursor is blinking on it.

Submodules

Submodules? No problem, git-blame should take care of that.

See the revision diff

Click on the revision hash in the gutter to be taken to the configured repository visual diff. See setting a custom remote repo url section below for support beyond bitbucket and github.

Options

Ignore White Space Diffs

If this option is selected, the git blame command will be run with -w option.

Show Only Last Names

If this option is selected, only the last word of the author's name will be displayed.

Date Format String

Default date format is YYYY-MM-DD. This feature is backed by moment.js. Any formats supported by moment are valid here.

Setting a Custom Remote Repo Url

This plugin will first check to see if your repo is backed by Github or Bitbucket so nothing is required if your repo is hosted on one of these.

If its not, you can easily set a custom revision URL string like so:

  • From the settings view go to settings for this package Git Blame
  • Check the box for "Use Custom Url Template If Standard Remotes Fail"
  • Set your url format string in the box labeled Custom Commit Url String

url-settings

The URL string should contain the following three placeholder variables wrapped in underscore template delimiters like so: <%- variable %>.

  • project - Will be replaced with the name of the project in your remote git repository. For this repo it would be alexcorre.
  • repo - Will be replaced with the name of the repository. For this repo it would be git-blame.
  • revision - Will be replaced with the full git revision hash you clicked on.

I'll use github as an example. Its already supported out of the box, but if it wasn't its custom url string would be:

https://github.com/<%- project %>/<%- repo %>/commit/<%- revision %>

So when you clicked on hash revision 12345 in this git-blame repository, you would visit the following url:

https://github.com/alexcorre/git-blame/commit/12345

Release History

  • 0.2.0: Initial Release
  • 0.2.1
    • Fix Issue #1. Remote URL parsing.
    • Added RemoteRevision unit tests
  • 0.2.2: Pull #6. Remote URL parsing without .git.
  • 0.2.3: Issue #5. Fix multiple gutters. Better error handling.
  • 0.2.4: React editor support. Support for repositories that don't specify a project.
  • 0.3.0
    • Resizable width of blame panel
    • git-blame view layer rebuilt in React
    • See commit message tooltip when hovering over a commit
    • git-blame now updates to pick up changes on save
    • support for remote repositories that have "." in project or repo names
  • 0.3.1: Issue #41. Option to blame with -w.
  • 0.3.2: Issue #43.
  • 0.3.3: Fix gramatical issues in error prompts.
  • 0.4.0: Shadow DOM compatibility, Atom 1.0 fixes
  • 0.4.1: Fix Atom 0.190.0 deprecations
  • 0.4.2: Add support for multi repository projects. Fix issue when blaming empty files.
  • 0.4.3: Remove further deprecations
  • 0.4.4: Fix #90
  • 0.4.5: Fix startup issues and the ability to click on a sha links. Thanks @filipminev
  • 0.4.6: Add option to choose author name format. Thanks @javawizard
  • 0.4.7: Make gutter width adjustable via settings. Thanks @wouterds
  • 0.4.8: Upgrade pathwatcher node module to latest