Skip to content

docs: add zed code_app to extending-templates doc #17281

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 7, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
zed+ coder app examples in extending-templates
  • Loading branch information
EdwardAngert committed Apr 7, 2025
commit eb1ad93dd8e54e98ef3888ac27dd5dd154313e91
47 changes: 47 additions & 0 deletions docs/admin/templates/extending-templates/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,53 @@ and can be hidden directly in the
resource. You can arrange the display orientation of Coder apps in your template
using [resource ordering](./resource-ordering.md).

### Coder app examples

<div class="tabs">

You can use these examples to add new Coder apps:

## code-server

```hcl
resource "coder_app" "code-server" {
agent_id = coder_agent.main.id
slug = "code-server"
display_name = "code-server"
url = "http://localhost:13337/?folder=/home/${local.username}"
icon = "/icon/code.svg"
subdomain = false
share = "owner"
```

## Filebrowser

```hcl
resource "coder_app" "filebrowser" {
agent_id = coder_agent.main.id
display_name = "file browser"
slug = "filebrowser"
url = "http://localhost:13339"
icon = "/icon/database.svg"
subdomain = true
share = "owner"
```

## Zed

```hcl
resource "coder_app" "zed" {
agent_id = coder_agent.main.id
slug = "slug"
display_name = "Zed"
external = true
url = "zed://ssh/coder.${data.coder_workspace.me.name}"
icon = "/icon/zed.svg"
}
```

</div>

Check out our [module registry](https://registry.coder.com/modules) for
additional Coder apps from the team and our OSS community.

Expand Down
15 changes: 0 additions & 15 deletions docs/admin/templates/extending-templates/web-ides.md
Original file line number Diff line number Diff line change
Expand Up @@ -315,21 +315,6 @@ module "airflow" {

![Airflow in Coder](../../../images/airflow-port-forward.png)

## Zed

Configure your agent and `coder_app` like to include a Zed hotlink:

```hcl
resource "coder_app" "zed" {
agent_id = coder_agent.main.id
slug = "slug"
display_name = "Zed"
external = true
url = "zed://ssh/coder.${data.coder_workspace.me.name}"
icon = "/icon/zed.svg"
}
```

## File Browser

To access the contents of a workspace directory in a browser, you can use File
Expand Down
Loading