rcode Improved
Project description
rcode-tddschn
rcode Improved.
Fork of https://github.com/yihong0618/rcode .
Improvements
- Supports specifying VSCode release channel (stable, insiders, etc.) via
-r
flag. - Deleting and listing
shortcut
s. - Detailed help messages.
- Grammar fixes.
Usage
$ rcode --help
usage: rcode [-h] [-r {stable,insiders}] [-l] [-s SHORTCUT_NAME] [-o OPEN_SHORTCUT] [-L] [-d DELETE_SHORTCUT] [-D] [dir] [host]
A command line tool to open directories in VSCode remotely or locally.
positional arguments:
dir The local directory path to open in VSCode or the remote directory path when used with a host.
host The SSH hostname as specified in your .ssh/config to open a remote directory in VSCode.
options:
-h, --help show this help message and exit
-r {stable,insiders}, --release {stable,insiders}
VS Code release channel to use (stable or insiders)
-l, --latest Open the most recently used remote directory.
-s SHORTCUT_NAME, -sn SHORTCUT_NAME, --shortcut_name SHORTCUT_NAME
rcode host dir -s <shortcut_name> | Add a shortcut name for the remote directory to quickly access it later. | Saved to
/Users/tscp/.rcode-tddschn.csv
-o OPEN_SHORTCUT, -os OPEN_SHORTCUT, --open_shortcut OPEN_SHORTCUT
Open a remote directory quickly using the previously saved shortcut name.
-L, --list List all configured shortcuts
-d DELETE_SHORTCUT, --delete DELETE_SHORTCUT
Delete a shortcut by name
-D, --delete-all Delete all shortcuts after confirmation
Note
This project depends on distutils
which was removed in Python 3.12.
Installation
pipx
This is the recommended installation method.
$ pipx install rcode-tddschn
# pipx install --python "$(which python3.11)" rcode-tddschn
pip
$ pip install rcode-tddschn
# python3.11 -m pip install rcode-tddschn
Develop
$ git clone https://github.com/tddschn/rcode-tddschn.git
$ cd rcode-tddschn
# poetry env use "$(which python3.11)"
$ poetry install
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rcode_tddschn-0.5.1.tar.gz
(6.3 kB
view hashes)
Built Distribution
Close
Hashes for rcode_tddschn-0.5.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07fe067a486640a44c45c6ceb1c679c863a2660bcd066c94efba0f629df63d17 |
|
MD5 | 83518e226a589e3355b40cb2ebc46fbd |
|
BLAKE2b-256 | 72f2c1ab38e6dcbbfdd515eba7e0fa6cc63c5818bfc38da8ebd0a3d266f85fbf |