Skip to content

Opening a coder_app in a new browser window is awkward #297

@stirby

Description

@stirby

Problem statement

Currently, coder_apps 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"
  ...
}

Metadata

Metadata

Labels

questionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy