codemp-vscode/README.md

68 lines
3.2 KiB
Markdown
Raw Normal View History

2024-09-07 22:13:45 +02:00
[![codemp](https://code.mp/static/banner.png)](https://code.mp)
2024-09-16 03:46:57 +02:00
[![Actions Status](https://github.com/hexedtech/codemp-vscode/actions/workflows/test.yml/badge.svg)](https://github.com/hexedtech/codemp/actions)
[![Visual Studio Marketplace Version](https://img.shields.io/visual-studio-marketplace/v/hexedtech.codemp)](https://marketplace.visualstudio.com/items?itemName=hexedtech.codemp)
[![Visual Studio Marketplace Last Updated](https://img.shields.io/visual-studio-marketplace/last-updated/hexedtech.codemp)](https://marketplace.visualstudio.com/items?itemName=hexedtech.codemp)
[![Gitter](https://img.shields.io/gitter/room/hexedtech/codemp)](https://gitter.im/hexedtech/codemp)
2022-09-14 12:13:48 +02:00
2024-09-06 12:37:28 +02:00
> `codemp` is a **collaborative** text editing solution to work remotely.
It seamlessly integrates in your editor providing remote cursors and instant text synchronization,
as well as a remote virtual workspace for you and your team.
# codemp-vscode
This is the reference codemp [vscode](https://code.visualstudio.com/) plugin maintained by [hexedtech](https://hexed.technology)
# installation
2024-09-16 03:46:57 +02:00
**Install from [Visual Studio Code Marketplace](vscode:extension/hexedtech.codemp)**
2024-09-06 16:17:03 +02:00
2024-09-16 03:46:57 +02:00
Automatically built artifacts are available for download (to logged-in GitHub users) under [our Workflows page](https://github.com/hexedtech/codemp-vscode/actions/workflows/publish.yml).
2024-09-06 16:17:03 +02:00
2024-09-16 03:46:57 +02:00
> [!IMPORTANT]
> Remember to configure your credentials after installing!
2024-09-06 16:17:03 +02:00
2024-09-16 03:46:57 +02:00
To connect to the main `code.mp` server, you [will need an account](https://code.mp/signup).
2024-09-06 12:37:28 +02:00
# usage
2024-09-16 03:46:57 +02:00
To use `codemp`, you should first join a workspace. From inside, it's possible to share local files or fetch remote files, always keeping them in sync.
> [!TIP]
> Your current workspace directory is used as root for `codemp` files, which are relative paths.
Most actions can be performed from the `codemp` sidebar with contextual buttons.
2024-09-06 12:37:28 +02:00
2024-09-16 03:46:57 +02:00
## commands
2024-09-06 12:37:28 +02:00
| command | description |
| --- | --- |
2024-09-16 03:46:57 +02:00
| `codemp.connect ` | connect to remote codemp server using configured credentials |
2024-09-06 12:37:28 +02:00
once connected, more commands become available:
| command | description |
| --- | --- |
| `codemp.join <workspace>` | will join requested workspace; starts processing cursors and users |
| `codemp.createWorkspace <workspace>` | will create a new workspace with given name |
| `codemp.listWorkspaces` | list all workspaces available to join |
2024-09-16 03:46:57 +02:00
| `codemp.activeWorkspaces` | list all workspaces currently active |
| `codemp.leaveWorkspace <workspace>` | leave a currently active workspace |
| `codemp.inviteToWorkspace <user> <workspace>` | invite a remote user to a workspace you own |
2024-09-06 12:37:28 +02:00
after a workspace is joined, more commands become available:
| command | description |
| --- | --- |
2024-09-16 03:46:57 +02:00
| `codemp.attach <buffer>` | will fetch remote buffer and keep it in sync |
| `codemp.share` | will share current buffer and keep it in sync |
2024-09-06 12:37:28 +02:00
| `codemp.createBuffer <bufname>` | will create a new empty buffer in workspace |
| `codemp.listBuffers` | will list all available buffers in workspace |
| `codemp.sync` | forces resynchronization of current buffer |
2024-09-16 03:46:57 +02:00
some commands for the Tree View are also provided:
2024-09-06 12:37:28 +02:00
2024-09-16 03:46:57 +02:00
| command | description |
| --- | --- |
| `codemp.refresh` | redraws tree view |
| `codemp.focus` | focuses tree view |
2022-09-14 12:13:48 +02:00