We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d3a46e commit 1e5d732Copy full SHA for 1e5d732
chromium/extension/service-worker.js
@@ -16,6 +16,14 @@ chrome.action.onClicked.addListener(async () => {
16
chrome.tabs.update(activeTab.id, { url: `${perplexityURL}/search/new?q=${query}` })
17
})
18
19
+// Suggest Perplexity on short prefix entered
20
+chrome.omnibox.onInputChanged.addListener((text, suggest) => {
21
+ if (text.startsWith('@p')) suggest([{
22
+ content: `@perplexity ${text.slice(2)}`,
23
+ description: `${chrome.i18n.getMessage('prefix_ask')} Perplexity.ai: ${text.slice(2)}`
24
+ }])
25
+})
26
+
27
// Query Perplexity on omnibox query submitted
28
chrome.omnibox.onInputEntered.addListener(query =>
29
chrome.tabs.update({ url: `${perplexityURL}/search/new?q=${query}` }))
0 commit comments