Skip to content

Commit

Permalink
Add explanation for opening files in preview mode using URL schemes
Browse files Browse the repository at this point in the history
  • Loading branch information
cyanzhong committed May 22, 2021
1 parent f183117 commit 59d10a1
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/cn/integration/url-schemes.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,16 @@ taio://editor?action=open&path=path&location=0

`path` 是目录时,将在文件管理器中打开该目录。

## 在预览模式下打开文件

对于 Markdown 文件,可以用 `.html` 代替 `.md` 后缀在预览模式下打开它们:

```
taio://editor?action=open&path=Example.html&location=0
```

其他参数的工作方式相同。

## 追加内容到文件

```
Expand Down
10 changes: 10 additions & 0 deletions docs/integration/url-schemes.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,16 @@ taio://editor?action=open&path=path&location=0

It opens the folder in file explorer when `path` is a folder.

## Open A File in Preview Mode

For Markdown files, you can open them in preview mode by replacing `.md` suffix with `.html`:

```
taio://editor?action=open&path=Example.html&location=0
```

Other parameters work the same way.

## Append Text to File

```
Expand Down

0 comments on commit 59d10a1

Please sign in to comment.