Description
Problem statement
Currently, coder_app
s open a slimmed down browser without navigation buttons or tabs. While the slim window maximizes display space for the app and makes it feel like a local process, apps like the filebrowser suffer from not having forward/back arrows.
You can open the apps in a new tab then pull them into a new window; but, not all users are aware of this shortcut. We're also missing the Shift+Click keybind to open a fresh browser window.
Solution proposal
We add a new property to coder_app
like open_in
with options to specify the default method of opening the app. We should also achieve parody with chrome keybindings. This attribute would set the default on-click behavior:
Option | Action | Chrome Keybind | Default Coder Keybind |
---|---|---|---|
tab |
Opens in a new tab in the same browser window | ctrl+click | ctrl+click |
window |
Opens a fresh browser window with navigation options | shift+click | shift+click (not present today) |
slim-window (default) |
Opens a window without tabs or navigation (currently default) | NA | click |
For example, the following would open the app in a full new window on regular click or shift+click, and a new tab on ctrl+click.
resource "coder_app" "code-server" {
agent_id = coder_agent.dev.id
slug = "code-server"
display_name = "VS Code"
open_in = "window"
...
}