From 1795f992a8518d3ccb7fa19099247e34898721d1 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Sun, 31 Oct 2021 12:26:58 -0400 Subject: [PATCH] Adds `from` to tag git commands title --- src/commands/git/tag.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands/git/tag.ts b/src/commands/git/tag.ts index 8faf975..eea55c5 100644 --- a/src/commands/git/tag.ts +++ b/src/commands/git/tag.ts @@ -225,6 +225,7 @@ export class TagGitCommand extends QuickCommand { placeholder: context => `Choose a branch${context.showTags ? ' or tag' : ''} to create the new tag from`, picked: state.reference?.ref ?? (await state.repo.getBranch())?.ref, + titleContext: ' from', value: GitReference.isRevision(state.reference) ? state.reference.ref : undefined, }); // Always break on the first step (so we will go back) @@ -349,7 +350,7 @@ export class TagGitCommand extends QuickCommand { } context.title = getTitle( - Strings.pluralize('Tag', state.references.length, { number: '' }).trim(), + Strings.pluralize('Tag', state.references.length, { only: true }), state.subcommand, );