Bläddra i källkod

Adds new status bar commands

main
Eric Amodio 5 år sedan
förälder
incheckning
82f0c30596
5 ändrade filer med 31 tillägg och 7 borttagningar
  1. +6
    -0
      CHANGELOG.md
  2. +4
    -0
      package.json
  3. +2
    -0
      src/config.ts
  4. +9
    -3
      src/statusbar/statusBarController.ts
  5. +10
    -4
      src/webviews/apps/settings/index.html

+ 6
- 0
CHANGELOG.md Visa fil

@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
## [Unreleased]
### Added
- Adds new actions options to the status bar blame
- Adds a `gitlens.showCommitsInView` option to show the commit in the _Search Commits_ view
- Adds a `gitlens.revealCommitInView` option to to reveal the commit in the _Repositories_ view
### Fixed
- Fixes issues with issue linking in hovers

+ 4
- 0
package.json Visa fil

@ -1327,6 +1327,8 @@
"gitlens.diffWithPrevious",
"gitlens.diffWithWorking",
"gitlens.toggleCodeLens",
"gitlens.revealCommitInView",
"gitlens.showCommitsInView",
"gitlens.showQuickCommitDetails",
"gitlens.showQuickCommitFileDetails",
"gitlens.showQuickFileHistory",
@ -1337,6 +1339,8 @@
"Compares the current line commit with the previous",
"Compares the current line commit with the working tree",
"Toggles Git code lens",
"Reveals the commit in the Repositories view",
"Shows the commit in the Search Commits view",
"Shows a commit details quick pick",
"Shows a commit file details quick pick",
"Shows a file history quick pick",

+ 2
- 0
src/config.ts Visa fil

@ -189,6 +189,8 @@ export enum KeyMap {
export enum StatusBarCommand {
DiffWithPrevious = 'gitlens.diffWithPrevious',
DiffWithWorking = 'gitlens.diffWithWorking',
RevealCommitInView = 'gitlens.revealCommitInView',
ShowCommitsInView = 'gitlens.showCommitsInView',
ShowQuickCommitDetails = 'gitlens.showQuickCommitDetails',
ShowQuickCommitFileDetails = 'gitlens.showQuickCommitFileDetails',
ShowQuickCurrentBranchHistory = 'gitlens.showQuickRepoHistory',

+ 9
- 3
src/statusbar/statusBarController.ts Visa fil

@ -133,19 +133,25 @@ export class StatusBarController implements Disposable {
switch (cfg.command) {
case StatusBarCommand.ToggleFileBlame:
this._blameStatusBarItem.tooltip = 'Toggle Blame Annotations';
this._blameStatusBarItem.tooltip = 'Toggle File Blame Annotations';
break;
case StatusBarCommand.DiffWithPrevious:
this._blameStatusBarItem.command = Commands.DiffLineWithPrevious;
this._blameStatusBarItem.tooltip = 'Compare Line Revision with Previous';
this._blameStatusBarItem.tooltip = 'Open Line Changes with Previous Revision';
break;
case StatusBarCommand.DiffWithWorking:
this._blameStatusBarItem.command = Commands.DiffLineWithWorking;
this._blameStatusBarItem.tooltip = 'Compare Line Revision with Working';
this._blameStatusBarItem.tooltip = 'Open Line Changes with Working File';
break;
case StatusBarCommand.ToggleCodeLens:
this._blameStatusBarItem.tooltip = 'Toggle Git CodeLens';
break;
case StatusBarCommand.RevealCommitInView:
this._blameStatusBarItem.tooltip = 'Reveal Commit in Repositories View';
break;
case StatusBarCommand.ShowCommitsInView:
this._blameStatusBarItem.tooltip = 'Show Commit in Repositories View';
break;
case StatusBarCommand.ShowQuickCommitDetails:
this._blameStatusBarItem.tooltip = 'Show Commit Details';
break;

+ 10
- 4
src/webviews/apps/settings/index.html Visa fil

@ -347,7 +347,7 @@
>toggles the file blame annotations</option
>
<option value="gitlens.diffWithPrevious"
>compares the commit with the previous</option
>opens changes with the previous revision</option
>
<option value="gitlens.revealCommitInView"
>reveals the commit in the Repositories view</option
@ -407,7 +407,7 @@
>toggles the file blame annotations</option
>
<option value="gitlens.diffWithPrevious"
>compares the commit with the previous</option
>opens changes with the previous revision</option
>
<option value="gitlens.revealCommitInView"
>reveals the commit in the Repositories view</option
@ -633,10 +633,16 @@
>toggles the file blame annotations</option
>
<option value="gitlens.diffWithPrevious"
>compares the line revision with the previous</option
>opens line changes with the previous revision</option
>
<option value="gitlens.diffWithWorking"
>compares the line revision with the working file</option
>opens line changes with the working file</option
>
<option value="gitlens.revealCommitInView"
>reveals the commit in the Repositories view</option
>
<option value="gitlens.showCommitsInView"
>shows the commit in the Search Commits view</option
>
<option value="gitlens.toggleCodeLens"
>toggles the Git code lens</option

Laddar…
Avbryt
Spara