Browse Source

Closes #571 - Adds compact display setting to repositories view

main
Eric Amodio 6 years ago
parent
commit
1e73e13ff2
4 changed files with 11 additions and 1 deletions
  1. +1
    -0
      CHANGELOG.md
  2. +1
    -0
      README.md
  3. +6
    -0
      package.json
  4. +3
    -1
      src/views/nodes/repositoryNode.ts

+ 1
- 0
CHANGELOG.md View File

@ -18,6 +18,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
- Adds a `gitlens.views.stashFileDescriptionFormat` setting to specify the description format of a stashed file in the views
- Adds a `gitlens.views.stashDescriptionFormat` setting to specify the description format of stashed changes in the views
- Adds a `gitlens.views.statusFileDescriptionFormat` setting to specify the description format of the status of a working or committed file in the views
- Adds a `gitlens.views.repositories.compact` setting to specify whether to show the _Repositories_ view in a compact display density — closes [#571](https://github.com/eamodio/vscode-gitlens/issues/571)
### Fixed

+ 1
- 0
README.md View File

@ -751,6 +751,7 @@ See also [View Settings](#view-settings- 'Jump to the View settings')
| `gitlens.views.repositories.autoRefresh` | Specifies whether to automatically refresh the _Repositories_ view when the repository or the file system changes |
| `gitlens.views.repositories.autoReveal` | Specifies whether to automatically reveal repositories in the _Repositories_ view when opening files |
| `gitlens.views.repositories.branches.layout` | Specifies how the _Repositories_ view will display branches<br /><br />`list` - displays branches as a list<br />`tree` - displays branches as a tree when branch names contain slashes `/` |
| `gitlens.views.repositories.compact` | Specifies whether to show the _Repositories_ view in a compact display density |
| `gitlens.views.repositories.enabled` | Specifies whether to show the _Repositories_ view |
| `gitlens.views.repositories.files.compact` | Specifies whether to compact (flatten) unnecessary file nesting in the _Repositories_ view. Only applies when `gitlens.views.repositories.files.layout` is set to `tree` or `auto` |
| `gitlens.views.repositories.files.layout` | Specifies how the _Repositories_ view will display files<br /><br />`auto` - automatically switches between displaying files as a `tree` or `list` based on the `gitlens.views.repositories.files.threshold` value and the number of files at each nesting level<br />`list` - displays files as a list<br />`tree` - displays files as a tree |

+ 6
- 0
package.json View File

@ -1367,6 +1367,12 @@
"markdownDescription": "Specifies how the _Repositories_ view will display branches",
"scope": "window"
},
"gitlens.views.repositories.compact": {
"type": "boolean",
"default": false,
"markdownDescription": "Specifies whether to show the _Repositories_ view in a compact display density",
"scope": "window"
},
"gitlens.views.repositories.enabled": {
"type": "boolean",
"default": true,

+ 3
- 1
src/views/nodes/repositoryNode.ts View File

@ -74,7 +74,9 @@ export class RepositoryNode extends SubscribeableViewNode {
children.push(new StatusFilesNode(this.view, this, status, range));
}
children.push(new MessageNode(this.view, this, '', GlyphChars.Dash.repeat(2), ''));
if (!this.view.config.repositories.compact) {
children.push(new MessageNode(this.view, this, '', GlyphChars.Dash.repeat(2), ''));
}
}
children.push(

Loading…
Cancel
Save