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.
- Host: GitHub
- URL: https://github.com/davidborzek/rofi-vscode
- Owner: davidborzek
- License: mit
- Created: 2020-02-07T07:18:24.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-16T08:09:29.000Z (almost 6 years ago)
- Last Synced: 2025-05-31T08:21:20.833Z (8 months ago)
- Topics: code, git, i3, ide, linux, rofi, rofi-vscode, vscode
- Language: Shell
- Homepage:
- Size: 44.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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...