Vscode-gitlens: Support disabling / hiding editor actions (icons at the right of tab bar)

Created on 26 Feb 2019  路  12Comments  路  Source: eamodio/vscode-gitlens

I don't like editor actions (the little icons on the right of the tab bar)

screenshot_gitlens-editor-actions_2019-02-26-11 26 02

, because:

  1. I don't use them (I invoke the commands via keyboard shortcuts or the command palette)
  2. they consume precious space
  3. they add UI clutter

So, I'd like to hide them. Ideally, VSCode issue https://github.com/Microsoft/vscode/issues/46403 would be addressed to enable hiding all/some of them, but it's not yet, so on GitLens side I'd love a gitlens.editorActions.enabled setting letting me disable them.

Thanks for GitLens 馃檪!

not bug question

Most helpful comment

image

With updated UI

All 12 comments

This is supported today. While the documentation of it is practically non-existent (using the gitlens.menus setting), the GitLens settings editor provides easy access (run _GitLens: Open Settings_ from the command palette).

Here are the settings in simple mode:
image

Use the dropdown pointed at to switch between simple and advanced.

Hope that helps.

This is supported today. While the documentation of it is practically non-existent (using the gitlens.menus setting), the GitLens settings editor provides easy access (run _GitLens: Open Settings_ from the command palette).

Use the dropdown pointed at to switch between simple and advanced.

Hope that helps.

@eamodio it does! I had searched the gitlens settings namespace, but missed gitlens.menus So,

    "gitlens.menus": {
        "editorGroup": {
            "blame": false,
            "compare": false
        }
    },

Thanks!

image

With updated UI

All these should be false by default. I'm uninstalling GitLens until VSCode allows better management of editor actions.

@sytelus You can easily set them off yourself.

@sytelus I also found the options horrible, but by enabling them by default allows users to see these features - it's easier to get rid of something you notice than it is to add something you don't know about ;)
Documentation should have something like what @blowsie pointed out as I just couldn't figure out what needed changing! Just remember to restart vscode for these changes to take effect

@shiraze What about the options did you find "horrible"?

Also what do you mean by?

Documentation should have something like what @blowsie pointed out

That screenshot is from GitLens' settings.

@eamodio I didn't like the addition of GitLens options in the editor group toolbar, and "horrible" is probably too strong a word ;)
It's nice to know that option is there, though, and setting it as default (as I mentioned) is a good way to show a new feature.
The documentation, though, was not clear on how this could be removed. I guess we need a one liner for each of the options in the screenshot from the GitLens documentation explaining how they affect the UI.
Don't forget: the community is here to help wherever we can!

@shiraze Please feel free to open a PR for adding more documentation -- thanks!

Is there a way to only show compare icons when in a diff? Also is it possible to move commands to the ... submenu?

@trkoch which compare icons? As for the ... menu that isn't currently an option.

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings