From 46fe8d1322cef59b4c112f55cd2f0668659d26fa Mon Sep 17 00:00:00 2001 From: Le Tan Date: Wed, 29 Dec 2021 17:08:06 +0800 Subject: [PATCH] update docs --- en_us/docs/Users/Task.md | 8 ++++---- en_us/docs/Users/vx.json | 2 +- zh_cn/docs/用户/vx.json | 2 +- zh_cn/docs/用户/任务.md | 8 ++++---- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/en_us/docs/Users/Task.md b/en_us/docs/Users/Task.md index ccf867ff..de26fae2 100644 --- a/en_us/docs/Users/Task.md +++ b/en_us/docs/Users/Task.md @@ -87,7 +87,7 @@ The `type` property of one task defines how the command will be executed. { "type": "process", "label": "Open File with", - "args": ["${file}"], + "args": ["${buffer}"], "tasks": [ { "label": "Typora", @@ -120,7 +120,7 @@ VNote does not provide a terminal. We may need to use `start` or `gnome-terminal "args": [ "--execute", "vim", - "${file}" + "${buffer}" ] } ``` @@ -143,7 +143,7 @@ We could use `windows`/`linux`/`osx` keyword to specify options for different pl { "type": "process", "label": "Open File with", - "args": ["${file}"], + "args": ["${buffer}"], "tasks": [ { "label": "Typora", @@ -281,7 +281,7 @@ Compile and run: ```json { - "command": "g++ \"${file}\" -o \"${fileBasenameNoExtension}\"; if ($?) { start cmd \"/c `\"${fileBasenameNoExtension}`\" & pause\" }" + "command": "g++ \"${buffer}\" -o \"${bufferBaseName}\"; if ($?) { start cmd \"/c `\"${bufferBaseName}`\" & pause\" }" } ``` diff --git a/en_us/docs/Users/vx.json b/en_us/docs/Users/vx.json index 7bdd5b25..8f4c2e8e 100644 --- a/en_us/docs/Users/vx.json +++ b/en_us/docs/Users/vx.json @@ -115,7 +115,7 @@ "attachment_folder": "", "created_time": "2021-12-23T07:29:06Z", "id": "49", - "modified_time": "2021-12-24T13:29:09Z", + "modified_time": "2021-12-27T04:00:43Z", "name": "Task.md", "signature": "177733903682", "tags": [ diff --git a/zh_cn/docs/用户/vx.json b/zh_cn/docs/用户/vx.json index 750343bb..f7657c12 100644 --- a/zh_cn/docs/用户/vx.json +++ b/zh_cn/docs/用户/vx.json @@ -115,7 +115,7 @@ "attachment_folder": "", "created_time": "2021-12-24T07:55:35Z", "id": "50", - "modified_time": "2021-12-24T13:34:53Z", + "modified_time": "2021-12-27T04:01:14Z", "name": "任务.md", "signature": "177733991671", "tags": [ diff --git a/zh_cn/docs/用户/任务.md b/zh_cn/docs/用户/任务.md index ec540962..868794f4 100644 --- a/zh_cn/docs/用户/任务.md +++ b/zh_cn/docs/用户/任务.md @@ -87,7 +87,7 @@ VNote会尝试从下面三个位置加载任务: { "type": "process", "label": "Open File with", - "args": ["${file}"], + "args": ["${buffer}"], "tasks": [ { "label": "Typora", @@ -120,7 +120,7 @@ VNote没有提供一个终端。我们可能需要使用`start`或者`gnome-term "args": [ "--execute", "vim", - "${file}" + "${buffer}" ] } ``` @@ -143,7 +143,7 @@ VNote没有提供一个终端。我们可能需要使用`start`或者`gnome-term { "type": "process", "label": "Open File with", - "args": ["${file}"], + "args": ["${buffer}"], "tasks": [ { "label": "Typora", @@ -281,7 +281,7 @@ VNote没有提供一个终端。我们可能需要使用`start`或者`gnome-term ```json { - "command": "g++ \"${file}\" -o \"${fileBasenameNoExtension}\"; if ($?) { start cmd \"/c `\"${fileBasenameNoExtension}`\" & pause\" }" + "command": "g++ \"${buffer}\" -o \"${bufferBaseName}\"; if ($?) { start cmd \"/c `\"${bufferBaseName}`\" & pause\" }" } ```