Browse Source

update docs

Le Tan 3 years ago
parent
commit
46fe8d1322
4 changed files with 10 additions and 10 deletions
  1. 4 4
      en_us/docs/Users/Task.md
  2. 1 1
      en_us/docs/Users/vx.json
  3. 1 1
      zh_cn/docs/用户/vx.json
  4. 4 4
      zh_cn/docs/用户/任务.md

+ 4 - 4
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\" }"
 }
 ```
 

+ 1 - 1
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": [

+ 1 - 1
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": [

+ 4 - 4
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\" }"
 }
 ```