Skip to content

Commit 5874a4d

Browse files
committed
feat: quick look
1 parent 10a4e67 commit 5874a4d

4 files changed

Lines changed: 200 additions & 610 deletions

File tree

src/adapters/youdao.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ class Youdao implements Adapter {
125125
}
126126

127127
private addResult( title: string, subtitle: string, arg: string = "", pronounce: string = ""): Result[] {
128-
this.results.push({ title, subtitle, arg, pronounce });
128+
const quicklookurl = "https://www.youdao.com/w/" + this.word;
129+
this.results.push({ title, subtitle, arg, pronounce, quicklookurl });
129130
return this.results;
130131
}
131132

0 commit comments

Comments
 (0)