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-worktrees

v2.0.5

Published

A Wrapper for Git Worktree Operations that provides an interactive API so developers have a better experience

Downloads

42

Readme

VS Code Git Worktrees

A Wrapper for Git Worktree Operations that provides an interactive API so developers can have a better experience.

Purpose of the extension

After creating a ZSH plugin that was responsible for wrapping up my daily git operations(zsh-git-fzf), I found myself very often switching between the terminal and my main Editor(VS Code). So I decided to create an extension for my main Editor that would help me avoid switching between them and keep everything in one tool.

Requirements

  • Git version: 2.34.1

Multiple Workspaces

This project supports multiple workspaces, allowing users to organize and manage their projects in separate spaces. If you have opened more than one project, you will be asked to select the workspace in which you want to run the operation. If you have only one project opened, it will be selected as the default workspace.

To select a workspace, simply choose from the list of available workspaces when prompted. Once you've made your selection, the operation will be executed within the chosen workspace.

Supported operations

  • git worktree add [remote-branch] [new-branch]

    Create a new worktree

    Behavior

    • If you do not select a new branch(ESC), you will create a new worktree with the remote branch you typed. This was made for convenience, instead of having git worktree add master master, you can just run git worktree add master.

    • Since the name of the worktree and branch is the same, we validate the user's new-branch input(Relevant issue)

  • git worktree list

    Display all worktrees and switch between them

  • git worktree remove [worktree-name]

    Remove a worktree

    Behavior

    • If you have untracked or modified files a Popup will be shown at the bottom left of the screen.
      • If you want to force delete the worktree with the untracked or modified files, just click Force delete on the Popup

    Restrictions

    • You cannot delete the same Worktree as the one you are currently working on

Getting started

Steps:

  • Install Git Worktree VS Code extension
  • Open the palette: CTRL + SHIFT + P
  • Search for any available operations
    • Prefix: Git Worktree:

Features/Operations/Error

  • Worktree Add (Create)

worktree-add

  • Worktree List (Switch)

worktree-list

  • Worktree Remove

Worktree remove

  • Error

    If anything goes wrong a Popup will be shown at the bottom left of the screen

    If you see anything weird, please open an issue

error

Properties

| Property | Type | Default value | Description | | ------------------------------------------- | ------- | ------------- | ----------------------------------------------------------- | | vsCodeGitWorktrees.remove.stalledBranches | boolean | false | Removes local(stalled) branches that do not exist on remote | | vsCodeGitWorktrees.move.openNewVscodeWindow | boolean | true | Open new vscode window when you switch or create a worktree | | vsCodeGitWorktrees.worktrees.dir.path | string | null | Define a directory for all worktrees between your projects |

Contribution

  • Reporting a bug
  • Improving this documentation
  • Writing tests
  • Sharing this project and recommending it to your friends
  • Giving a star on this repository
  • TODO

Run the Extension locally

# install dependencies
yarn
# compile code and watch input files
yarn watch
# Then, inside the editor, press F5. This will
# compile and run the extension in a new Extension
# Development Host window.

License

MIT © Alexis Zamanidis