diff --git a/src/webviews/apps/shared/components/search/search-box.ts b/src/webviews/apps/shared/components/search/search-box.ts index af17be6..b1f620f 100644 --- a/src/webviews/apps/shared/components/search/search-box.ts +++ b/src/webviews/apps/shared/components/search/search-box.ts @@ -187,7 +187,7 @@ export class SearchBox extends FASTElement { label = 'Search'; @attr - placeholder = 'Search commits, e.g. "Updates dependencies" author:eamodio'; + placeholder = 'Search commits (↑↓ for history), e.g. "Updates dependencies" author:eamodio'; @attr value = ''; diff --git a/src/webviews/apps/shared/components/search/search-input.ts b/src/webviews/apps/shared/components/search/search-input.ts index 13f93be..6392e5e 100644 --- a/src/webviews/apps/shared/components/search/search-input.ts +++ b/src/webviews/apps/shared/components/search/search-input.ts @@ -162,6 +162,9 @@ const template = html` + `; @@ -519,6 +522,10 @@ export class SearchInput extends FASTElement { this.value += `${this.value.length > 0 ? ' ' : ''}${token}`; window.requestAnimationFrame(() => { this.debouncedUpdateHelpText(); + // `@me` can be searched right away since it doesn't need additional text + if (token === '@me') { + this.debouncedEmitSearch(); + } this.input.focus(); }); }