ソースを参照

Changes for consistent terminology

main
Eric Amodio 5年前
コミット
43c76db89a
2個のファイルの変更12行の追加12行の削除
  1. +5
    -5
      src/commands/git/search.ts
  2. +7
    -7
      src/views/nodes/searchNode.ts

+ 5
- 5
src/commands/git/search.ts ファイルの表示

@ -131,27 +131,27 @@ export class SearchGitCommand extends QuickCommandBase {
if (state.search === undefined || state.counter < 2) {
const items: QuickPickItemOfT<string>[] = [
{
label: `${this.title} by Message`,
label: searchOperatorToTitleMap.get('')!,
description: `pattern ${GlyphChars.Dash} use quotes to search for phrases`,
item: ''
},
{
label: `${this.title} by Author or Committer`,
label: searchOperatorToTitleMap.get('author:')!,
description: 'author: pattern',
item: 'author:'
},
{
label: `${this.title} by Commit ID`,
label: searchOperatorToTitleMap.get('commit:')!,
description: 'commit: sha',
item: 'commit:'
},
{
label: `${this.title} by Files`,
label: searchOperatorToTitleMap.get('file:')!,
description: 'file: glob',
item: 'file:'
},
{
label: `${this.title} by Changes`,
label: searchOperatorToTitleMap.get('change:')!,
description: 'change: pattern',
item: 'change:'
}

+ 7
- 7
src/views/nodes/searchNode.ts ファイルの表示

@ -38,8 +38,8 @@ export class SearchNode extends ViewNode {
...command,
arguments: [this, getCommandArgs('')]
},
'Search for commits with messages',
'pattern',
'Search by Message',
`pattern ${GlyphChars.Dash} use quotes to search for phrases`,
`Click to search for commits with matching messages ${GlyphChars.Dash} use quotes to search for phrases`
),
new CommandMessageNode(
@ -49,7 +49,7 @@ export class SearchNode extends ViewNode {
...command,
arguments: [this, getCommandArgs('author:')]
},
`${GlyphChars.Space.repeat(4)} or, authors or committers`,
`${GlyphChars.Space.repeat(4)} or, Author or Committer`,
'author: pattern',
'Click to search for commits with matching authors or committers'
),
@ -60,9 +60,9 @@ export class SearchNode extends ViewNode {
...command,
arguments: [this, getCommandArgs('commit:')]
},
`${GlyphChars.Space.repeat(4)} or, commit id`,
`${GlyphChars.Space.repeat(4)} or, Commit ID`,
'commit: sha',
'Click to search for commits with matching commit id'
'Click to search for commits with matching commit ids'
),
new CommandMessageNode(
this.view,
@ -71,7 +71,7 @@ export class SearchNode extends ViewNode {
...command,
arguments: [this, getCommandArgs('file:')]
},
`${GlyphChars.Space.repeat(4)} or, files`,
`${GlyphChars.Space.repeat(4)} or, Files`,
'file: glob',
'Click to search for commits with matching files'
),
@ -82,7 +82,7 @@ export class SearchNode extends ViewNode {
...command,
arguments: [this, getCommandArgs('change:')]
},
`${GlyphChars.Space.repeat(4)} or, changes`,
`${GlyphChars.Space.repeat(4)} or, Changes`,
'change: pattern',
'Click to search for commits with matching changes'
)

||||||
x
 
000:0
読み込み中…
キャンセル
保存