diff --git a/src/commands/git/search.ts b/src/commands/git/search.ts index 6f268de..8a5e30d 100644 --- a/src/commands/git/search.ts +++ b/src/commands/git/search.ts @@ -348,7 +348,7 @@ export class SearchGitCommand extends QuickCommandBase { } else { quickpick.items = [ { - label: 'Search for commits matching', + label: 'Search for', description: quickpick.value, item: quickpick.value } @@ -389,7 +389,7 @@ export class SearchGitCommand extends QuickCommandBase { state.repo.path, search, { - label: { label: `commits matching: ${state.search}` } + label: { label: `for ${state.search}` } }, resultsPromise ); @@ -411,10 +411,10 @@ export class SearchGitCommand extends QuickCommandBase { title: `${this.title}${Strings.pad(GlyphChars.Dot, 2, 2)}${state.repo.formattedName}`, placeholder: results === undefined - ? `No results for commits matching: ${state.search}` + ? `No results for ${state.search}` : `${Strings.pluralize('result', results.count, { number: results.truncated ? `${results.count}+` : undefined - })} for commits matching: ${state.search}`, + })} for ${state.search}`, matchOnDescription: true, matchOnDetail: true, items: @@ -440,7 +440,7 @@ export class SearchGitCommand extends QuickCommandBase { state.repo!.path, search, { - label: { label: `commits matching: ${state.search}` } + label: { label: `for ${state.search}` } }, results ); @@ -459,7 +459,7 @@ export class SearchGitCommand extends QuickCommandBase { pickedCommit.repoPath, { pattern: `commit:${pickedCommit.sha}` }, { - label: { label: `commits matching: commit:${pickedCommit.shortSha}` } + label: { label: `for commit id ${pickedCommit.shortSha}` } } ); diff --git a/src/commands/showQuickCommitDetails.ts b/src/commands/showQuickCommitDetails.ts index 3ec1395..410f638 100644 --- a/src/commands/showQuickCommitDetails.ts +++ b/src/commands/showQuickCommitDetails.ts @@ -122,9 +122,9 @@ export class ShowQuickCommitDetailsCommand extends ActiveEditorCachedCommand { if (args.showInView) { void (await Container.searchView.search( repoPath!, - { pattern: `commit: ${args.commit.sha}` }, + { pattern: `commit:${args.commit.sha}` }, { - label: { label: `commits matching: commit:${args.commit.shortSha}` } + label: { label: `for commit id ${args.commit.shortSha}` } } )); diff --git a/src/quickpicks/commonQuickPicks.ts b/src/quickpicks/commonQuickPicks.ts index a0d8df3..0f17d06 100644 --- a/src/quickpicks/commonQuickPicks.ts +++ b/src/quickpicks/commonQuickPicks.ts @@ -113,7 +113,7 @@ export class ShowCommitInViewQuickPickItem extends CommandQuickPickItem { this.commit.repoPath, { pattern: `commit:${this.commit.sha}` }, { - label: { label: `commits matching: commit:${this.commit.shortSha}` } + label: { label: `for commit id ${this.commit.shortSha}` } } )); } diff --git a/src/views/searchView.ts b/src/views/searchView.ts index 64a2e3d..2b20ce0 100644 --- a/src/views/searchView.ts +++ b/src/views/searchView.ts @@ -203,7 +203,7 @@ export class SearchView extends ViewBase { number: truncated ? `${count}+` : undefined, plural: resultsType.plural, zero: 'No' - })} for ${label.label}`; + })} ${label.label}`; } private getSearchQueryFn(