Code Monkey home page Code Monkey logo

repo's Introduction

repo

Switch between repositories with ease
Access all repositories from anywhere

Release LICENSE


Features

  • Fuzzy matching - can match paths partially.
  • Shell integration - Works with zsh and bash.
  • Output formats - supports plain and nested json output.
  • Respects gitignore - skips nested repositories that are ignored by git.
  • Configurable - you can add multiple roots and control scan depth for each.

Demo

repo

Installing

Download latest release for your system and put it in the path.

Shell integration

You can run repo sh to see the setup instructions for your current shell if supported. Supported shells are zsh, bash and fish.

Usage

You can jump around your repos with -

% z fo/ba
% /foo/bar
% z p/os/vsc
% ~/Projects/oss/vscode-repo

Where z can be any letter you bind. Hitting the tab will show you possible locations.

Editor Integration

Configuration

You can customize the behavior of repo by creating a configuration file named repo.yml.

Tip

If no repo.yml file exists, the tool will search your home directory by default.

1. Initializing Config

To initiate a blank configuration file, execute the following command:

repo init

This creates the repo.yml file in your system's default configuration directory.

2. Specifying Root Paths

Warning

Ensure paths are specified using the correct path syntax for your operating system.

Define the directories you wish to include in the search. Each path can optionally specify a maximum traversal depth:

roots:
  # Search all Git repositories within this directory:
  - path: /home/mohit/Projects

  # Restrict the search to a depth of 2 levels within this directory:
  - path: /home/mohit/Work
    depth: 2

repo's People

Contributors

mohitsinghs avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

repo's Issues

Improve output for detected repositories

Changes in cmp

  • Keep -j/--json flag as is
  • Keep -f/--full flag as is
  • Introduce -t/--tree flag for tree output
  • Verify for window paths

Results

This gives us following options for cmp output

Command Output Description
repo cmp Text output repository names only
repo cmp -f/--full Text output full repository paths
repo cmp -j/--json JSON output paths as a list
repo cmp -t/--tree JSON output paths as a tree

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.