Skip to content

Cmd+W should close tab, not window #275

Closed
@joshka

Description

@joshka

Describe the request

When the Cmd+W (Ctrl+W on Windows) keyboard shortcut is pressed, close the current tab.

Describe the current behavior

Arduino acts as a container for tabs. Most people see this most often in browsers or other editors / IDEs. The keyboard for closing a tab in those cases is Cmd+W (Ctrl+W on Windows). In Arduino IDE this closes the entire window.

To reproduce

  1. Press Cmd+W

Arduino IDE version

2.0.0-beta.4

Operating system

macOS

Additional context

This could be a feature request or a bug, or a highly opinionated preference. I'm not sure which.


Keywords

  • "keybinding"

  • "key binding"

  • "hotkey"

  • "hot key"

  • "accelerator"

  • "key combination"

  • "key sequence"

  • "key chord"

  • "shortcut key"

Issue checklist

  • I searched for previous requests in
    I verified the feature was still missing when using the latest
    My request contains all necessary details

Activity

ubidefeo

ubidefeo commented on Mar 26, 2021

@ubidefeo

hi @joshka

This could be a feature request or a bug, or a highly opinionated preference. I'm not sure which.

I believe it's an opinionated preference :D
The Arduino IDE's behaviour has traditionally been to keep all files of a Sketch open (the Sketch is a folder containing a .ino file with the same name of the folder and a bunch of other files to complete the project).
As you noticed, you cannot close tabs belonging to a sketch.

If you end up with an open tab as result of going to a definition or while using the Debugger you will be able to close such tabs because they don't believe to the Sketch.
Such tabs will present a closing X and will be closed by a CMD/CTRL+W.

We have long debated wether IDE 2.0 should behave as the Java IDE and the current behaviour (as annoying to myself it can be) has been decided to be brought into the new IDE.
I'll mark this one as an enhancement, and if it gathers enough 👍🏼 we'll bring it back to the discussion table.

Thank you
u.

joshka

joshka commented on Mar 27, 2021

@joshka
Author

Makes sense, thanks for the thoughtful response on this. Definitely an opinionated preference :)

stodge

stodge commented on Jul 20, 2022

@stodge

If it's an "opinionated preference" then implement a setting so that users can choose. Otherwise you're deciding how users should work. Thanks!

locked as resolved and limited conversation to collaborators on Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @stodge@joshka@ubidefeo@per1234

        Issue actions

          Cmd+W should close tab, not window · Issue #275 · arduino/arduino-ide