gitkraken / vscode-gitlens

Supercharge Git inside VS Code and unlock untapped knowledge within each repository — Visualize code authorship at a glance via Git blame annotations and CodeLens, seamlessly navigate and explore Git repositories, gain valuable insights via rich visualizations and powerful comparison commands, and so much more
http://gitkraken.com/gitlens
Other
9.03k stars 1.35k forks source link

Add an `action-list` component #3785

Open nzaytsev opened 1 day ago

nzaytsev commented 1 day ago

Image

Create a "smart component" that uses the <action-nav> and <action-item> components to create a more complex toolbar experience closer to what VS Code provides.

Features:

Example markup:

<gl-toolbar limit="3" items=${[ 
  { icon: 'request-changes', label: 'Open Pull Request Changes', href='command:gitlens.home.fetch' },
  { icon: 'globe', label: 'Open Pull Request on Remote', href='command:gitlens.home.openPullRequestOnRemote' },
  { icon: 'git-pull-request-create', label: 'Create Pull Request...', href='command:gitlens.home.createPullRequest' },
  { icon: 'gl-repo-fetch', label: 'Fetch', href='command:gitlens.home.fetch' } 
]}></gl-toolbar>