An open API service indexing awesome lists of open source software.

https://github.com/davidborzek/rofi-vscode

A vscode workspace selector using rofi.
https://github.com/davidborzek/rofi-vscode

code git i3 ide linux rofi rofi-vscode vscode

Last synced: 7 months ago
JSON representation

A vscode workspace selector using rofi.

Awesome Lists containing this project

README

          

# rofi-vscode
## Table of Contents
- [Installation](#installation)
- [Usage](#usage)
- [Screenshots](#screenshots)

## Installation

1. Clone or download the repository.
2. Install [rofi](https://github.com/davatorium/rofi/blob/next/INSTALL.md#install-distribution).
3. Run ``make install``. (maybe you need ``sudo`` permissons to do this)

## Usage

### Example

If the script is in a binary directory:
``rofi-vscode [directory]``

Replace ``[directory]`` with the directory of your vscode workspaces. (e.g. ``/home/user/git``)

### Functions

The script will open a rofi dmenu where it will list all the directories in the given workspaces directory. If you select a directory (or project) it will open it in vscode.

- ``Create new workspace``: It asks you for new directory name and creates a new directory in the workspaces folder. Finally it will open it in VSCode.
- ``Add existing project from git`` : It allows you to clone a git repository from the scirpt either from a SSH or a HTTPS source.

##### Info
If you want to clone a git repository via ssh and your ssh key is protected with a passphrase, you should either remove the passphrase for better comfort or you have to run ``ssh-add ~/.ssh/id_rsa`` before you clone the repo.

### Keybindings

- ``Alt+r``: Remove the selected workspace
- ``Alt+e`` : Edit (rename) the selected workspace
- ``Alt+Return``: Open a information view about the selected workspace
- ``Alt+t``: Opens the selected workspace in a terminal

## Requirements

- rofi
- git
- curl
- Visual Studio Code (code)

## Screenshots

soon...