Skip to content

Commit

Permalink
0.4 released
Browse files Browse the repository at this point in the history
  • Loading branch information
niudai committed May 15, 2020
1 parent a69f353 commit c0ab2a2
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 3 deletions.
55 changes: 55 additions & 0 deletions release_notes/0.4.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
#! https://zhuanlan.zhihu.com/p/141107340

![Image](https://pic4.zhimg.com/80/v2-0c8e73a2a092ed3686d2fddfcfe93f1a.png)

# 在 VSCode 里用微信登录知乎是什么体验

### *Zhihu On VSCode* 现在支持微信登录啦!

在最新版 *Zhihu On VSCode 0.4* 中,知乎er 可以选择使用微信 APP 扫码登录,只需保证知乎账号和微信账号绑定,即可打开微信 APP 扫一扫:

![Image](https://pic4.zhimg.com/80/v2-8408ca3963bc92635277a4273c631e76.png)

> *Zhihu On VSCode* 为什么不支持账号密码登录了?
答:

因为账号密码登录安全性不好,现在已经支持了知乎 APP 和 微信 APP 的扫码登录,已经足够方便。

### 在 VSCode 里面 @ 你想 @ 的 Zhihuer!

该版本中,用户可以直接在 Markdown 文本里面 @ 知乎er 啦,只需要输入 @,弹出提示,点击回车:

![Image](https://pic4.zhimg.com/80/v2-093163b4907692447791cdeefc70426e.png)

![Image](https://pic4.zhimg.com/80/v2-9060706cd61673d83e56f0bd38a1f6bb.png)

![Image](https://pic4.zhimg.com/80/v2-b4c1b8ff1cd34657552f3640edb24124.png)

选择后,会自动生成 @ 链接,无需手动管理。

### 可以使用链接卡片啦!

知乎的链接可以变成卡片,只需在链接后面加入 *"card"* 即可:

![Image](https://pic4.zhimg.com/80/v2-4ba858842c81a7774c8891ec755867fb.png)

发布后:

![Image](https://pic4.zhimg.com/80/v2-2b11de9d069601b95cf67c631082f7c1.png)

### 可以添加图片描述啦!

![Image](https://pic4.zhimg.com/80/v2-382d5746fd25e675a608bb6281cd7753.png)

发布后:

![Image](https://pic4.zhimg.com/80/v2-6b7730e332dc14821bc431f038ae6d4e.png)

记得去小岱的[项目仓库](https://github.com/niudai/VSCode-Zhihu)打颗 ⭐ 哦!

关注项目作者 [@牛岱](https://zhuanlan.zhihu.com/p/107839880)

> 声明:该项目为非官方,非盈利的开源软件,目的在于帮助创作者更稳定地输出高质量内容。

5 changes: 2 additions & 3 deletions src/lang/completion-provider.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import * as vscode from "vscode";
import { sendRequest } from "../service/http.service";
import { AtAutoCompleteURL } from "../const/URL";
import { Output } from "../global/logger";
import { sendRequest } from "../service/http.service";



Expand Down Expand Up @@ -54,7 +53,7 @@ export async function AtPeople() {
* ]
*/
const selectedPeople: any[] = await vscode.window.showQuickPick<vscode.QuickPickItem & { user: [] }>(
respArray.map(item => ({ user: item, id: item[2], label: item[1], description: item[5] })),
respArray.slice(1).map(item => ({ user: item, id: item[2], label: item[1], description: item[5] })),
{ placeHolder: "选择你想要的结果:" }
).then(r => r ? r.user : undefined);
if (!selectedPeople) return
Expand Down
1 change: 1 addition & 0 deletions src/service/publish.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ export class PublishService {
// get rid of shebang line
if (url) text = text.slice(text.indexOf('\n') + 1);

text = ">本文使用 [Zhihu On VSCode](https://zhuanlan.zhihu.com/p/106057556) 创作并发布\n\n" + text;
// let html = this.zhihuMdParser.render(text);
let tokens = this.zhihuMdParser.parse(text, {});
// convert local and outer link to zhihu link
Expand Down

0 comments on commit c0ab2a2

Please sign in to comment.