Giter Site home page Giter Site logo

mohitsinghs / vscode-repo Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 146 KB

VSCode extension to switch between repositories with ease

Home Page: https://marketplace.visualstudio.com/items?itemName=mohitsingh.repo

License: MIT License

TypeScript 93.88% Shell 6.12%
project-management repository-management visual-studio-code vscode vscode-extension git

vscode-repo's Introduction

Repositories

Switch between repositories with ease
Fastest way to access your local repositories within VSCode

Release LICENSE version installs downloads


Features

  • Switch Repositories: Easily switch between repositories.
  • Auto Repository Detection: Automatically detect Git repositories.
  • View Options: Choose between tree or list view.
  • Status Bar Integration: See the current repository in the status bar.
  • Gitignore Friendly: Respects your .gitignore settings.

Demo

vscode-repo

Commands

  • Repositories: Edit configuration - Opens configuration for the repo and allows controlling root paths and scan depth.
  • Repositories: List Repos - Opens a quick pick list of repositories to switch.

Settings

Setting Description Default Value
repositories.treeAsDefault Use tree view as the default. false
repositories.sortByName Sort tree view by repository names. false
repositories.showInStatusBar Show the current project in the status bar. true
repositories.preferBundled Prefer bundled binary; fallback to PATH binary. true

Platform Support

The extension is available on all major platforms, including Windows, macOS, and Linux. However, while it's generally compatible with these platforms, please note that testing is more extensive on some platforms than others. If you encounter any issues on your specific platform, feel free to raise an issue with relevant details.

Warning

If you are using Windows Subsystem for Linux (WSL), please be aware that full support might be limited. In WSL, the repo cli needs to be installed, and it may not work correctly if the PATH is not inherited. You can set repositories.preferBundled to false to always use the binary from the PATH instead of bundled one. For more information, refer to #2 and #4.

Inspirations

vscode-repo's People

Contributors

mohitsinghs avatar

Stargazers

Matteo Morlacchi avatar vancaem avatar  avatar David Brockman avatar

Watchers

vancaem avatar  avatar

vscode-repo's Issues

Feature request: open in new window

Hi ๐Ÿ‘‹ Thanks again for getting this working on a mac ๐Ÿฅณ

Any chance of adding an open-in-new-window button to the repos list?

Add windows support

  • Move tree builder logic to rust. ( binary + extension )
  • Enable tree view on Windows. ( extension )

Windows: Include repositories from WSL

I am using vscode on windows 10 but mainly using WSL2 so 90% of my repositories are in WSL.
By default, the extension shows windows' repository but not the WSL ones, but is would be nice to display both windows & WSL repositories.

Workaround :

  • go to %userprofile%\.vscode\extensions\mohitsingh.repo-0.2.2-win32-x64\bin
  • run repo.exe init
  • edit %APPDATA%\repo.yml and add the following
roots: 
  # host paths
  - path: c:\users\xxxxx  # put your home directory here
  # wsl paths
  - path: \\wsl$\YOUR_WSL_DISTRIB_NAME\home\YOUR_USERNAME\
  • now it should properly show both windows & wsl repositories

How to configure paths?

i tried it like this:

roots:

  • /Users/mymac/htdocs/

but it won't work, can you please help me with that

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.