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

git-jump

v0.3.1

Published

Git Branches Helper

Downloads

24

Readme

git-jump CLI logo

Git Branches Helper

  • Interactive UI to view and switch branches
  • Sorting by recently used
  • Fuzzy search
  • Fuzzy switch: git jump hlwgit switch hello-world
  • Uses native git switch under the hood, supports all its parameters

Install

npm install -g git-jump

or using Homebrew

brew tap mykolaharmash/git-jump
brew install git-jump

Usage

git jump

Run without arguments to launch interactive UI.

  • At first, branches are not sorted. Once you start switching around, git jump will track the history and sort the list, so that the most recently used branches are at the top and can be accessed faster.
  • Navigate the list with ↓↑ arrows and hit enter ⏎ to switch into selected branch.
  • On the left hand side of the list you'll see a number next to a brunch name. Use Option+<number> for quick switch (Alt+<number> on Windows and Linux).
  • Start typing to filter the list. The search is fuzzy, you don't have to be precise.
  • Ctrl+C to exit.
git jump <branch name>

Switches to a branch. <branch name> can be just part of the name, git jump will look for the best matching branch.

git jump [--list | -l]

Shows a plain list of branches without interactive UI but with sorting.

git jump <any native switch arguments>

You can use git jump as a drop-in replacement for native git switch. git jump will proxy all the argument to the native command, so you don't have to think to use one or the other.

For example git jump my-branch --discard-changes works just fine.

git jump new <branch name>

Creates a new branch and switches into it. Supports all native parameters of git switch, for example git jump new <branch name> --track origin/main.

git jump rename <branch name> <new branch name>

Renames a branch.

git jump delete <branch name> [<branch name>, ...]

Deletes one or multiple branches. No fuzzy matching here, of course 🙂.

How To Enable Option/Alt+<number> Shortcut

It might be disabled by default in your terminal, here is how to make it work in some apps.

iTerm 2

In Preferences go to Profiles, select your profile and go to Keys. At the bottom set Left Option (⌥) Key to Esc+.

iTerm 2 app preferences window

macOS Terminal

In Preferences go to Profiles, select your profile and go to Keyboard. Enable Use Option as Meta key checkbox.

macOS Terminal app preferences window

Hyper

Open .hyper.js and add next line to the config section:

modifierKeys: { altIsMeta: true }