Skip to content

Editor actions are hard to discover when tabs are enabled #7666

Closed

Description

Due to limited space in a tab, we put the editor actions into the context menu. This makes them much harder to use and explore compared to having them visible with icons in the title header when tabs are disabled.

Activity

  1. added
    ux
    workbench-tabs
    on Jun 14, 2016
  2. added
    feature-request
    on Jun 25, 2016
  3. bpasero commented on Jun 30, 2016

    @bpasero
    ContributorAuthor

    Since this is a somewhat adoption blocker for people in the team to use tabs, we should look into this.

  4. bpasero commented on Jul 4, 2016

    @bpasero
    ContributorAuthor

    We also have an issue that the path on a tab is only accessible from the native hover (which sometimes appears late). So I wonder if maybe we could combine both issues into one and show the path of the file along with the editor actions somewhere when you hover over the tab. Or, if we decide to introduce an editor toolbar, maybe it could be in there?

    I think for this issue we should just sit together and brainstorm UX ideas.

  5. MovGP0 commented on Jul 12, 2016

    @MovGP0

    when the filename is very long, a tab takes lots of width. the name should be shortened with an hellipsis character.

    Instead of 'thisisaverylongfilename.txt' it might only show 'thisisav…e.txt'.

  6. bgashler1 commented on Jul 14, 2016

    @bgashler1
    Contributor

    UX Meeting Summary:
    We will put local commands back where they used to be before we introduced tabs. But we don’t want to mix group-level and editor-level commands in the same area. Thus a few things need to change. See #9159 for more info...

  7. bpasero commented on Jul 14, 2016

    @bpasero
    ContributorAuthor

    I pushed a first cut of this work, feedback welcome. Nothing changed for when tabs are disabled but showing it here for the sake of completeness:

    Tabs Disabled (same UI as before)
    Editor actions show up in the right corner with an additional X button to close the editor:
    image

    For the diff editor:
    image

    If the group is inactive we only show the X button to close the editor:
    image

    You can right click in the title to trigger a context menu with additional commands:
    image

    Tabs Enabled
    Editor actions show up in the right corner:
    image

    For the diff editor:
    image

    The overflow icon moved into the "..." and so there are always two entries in the "..." to show all opened editors and close all:
    image

    For the diff editor (which is the only one to add additional secondary actions currently):
    image

    If the editor group is inactive we show "..." with the 2 actions:
    image

    You can right click on a tab to trigger a context menu with additional commands:
    image

    There are things about this solution that are questionable:

    • the fact that the overflow icon is gone and moved into the "..." where it is harder to find (this can be solved by having an additional overflow indication in the tabs container itself, e.g. where the scrollbar is)
    • the fact that for an inactive group I only show "..." as the action violates our action contract where we say that "..." can only be there if there are other primary actions (we could just not show any "..." for inactive groups however people might want a quick way to "Close All" even for inactive groups).
  8. jrieken commented on Jul 14, 2016

    @jrieken
    Contributor

    Just to add more complexity there are now also menu contributions. Specifically editor/title which targets -depending on the group property- either in the action bar or the overflow menu - see markdown or Bookmarks extensions.

    screen shot 2016-07-14 at 17 19 35

  9. skolmer commented on Jul 14, 2016

    @skolmer

    Is this the reason why the current version of vscode is not showing command icons defined like:

          {
            "command": "i18nTag.validateTranslation",
            "category": "i18nTag",
            "title": "Validate translation file",
            "icon": {
              "light": "./media/validate_icon.svg",
              "dark": "./media/validate_icon_inverted.svg"
            }
          }

    or do I have to add the media files somehow to the release output of my extension?

  10. bgashler1 commented on Jul 14, 2016

    @bgashler1
    Contributor

    Just talked over standup with the PMs. We can go ahead and test this with insiders over the next 3 weeks and monitor feedback from insiders. If there are any big gotchas, we can revert before the July release.

    When you're back we can further iterate.

  11. bpasero commented on Jul 15, 2016

    @bpasero
    ContributorAuthor

    Brad Gashler (@bgashler1) sounds good. I would not go as far as to revert this change entirely, imho the only questionable thing is the overflow action. Let me push a boolean flag to bring it back and instruct you guys here how to enable that in case needed!

  12. jrieken commented on Jul 15, 2016

    @jrieken
    Contributor

    Steffen Kolmer (@skolmer) I depends where you let the command show. Currently, only editor/title with group=navigation shows icons. Context menus don't show icons

  13. skolmer commented on Jul 15, 2016

    @skolmer

    Johannes Rieken (@jrieken) thank you! I think that's it. I used a custom group and not group=navigation

  14. bpasero commented on Jul 15, 2016

    @bpasero
    ContributorAuthor
  15. added
    verification-needed
    on Jul 15, 2016
  16. Tyriar commented on Jul 28, 2016

    @Tyriar
    Contributor

    Verified via #9701

  17. removed
    verification-needed
    on Jul 28, 2016
  18. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestuxworkbench-tabs

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions