瀏覽代碼

vault backup: 2022-11-15 10:30:29

Affected files:
.obsidian/workspace.json
04 Templates/Project Template.md
Hans Martin 2 年之前
父節點
當前提交
aeccc0aea4
共有 2 個文件被更改,包括 14 次插入31 次删除
  1. 4 23
      .obsidian/workspace.json
  2. 10 8
      04 Templates/Project Template.md

+ 4 - 23
.obsidian/workspace.json

@@ -22,18 +22,6 @@
           {
             "id": "d8a137f67e112a9a",
             "type": "leaf",
-            "state": {
-              "type": "markdown",
-              "state": {
-                "file": "01 Action/01 Action.md",
-                "mode": "source",
-                "source": false
-              }
-            }
-          },
-          {
-            "id": "177ec7a9fdc1d508",
-            "type": "leaf",
             "state": {
               "type": "markdown",
               "state": {
@@ -42,17 +30,9 @@
                 "source": false
               }
             }
-          },
-          {
-            "id": "d3102a0b53863282",
-            "type": "leaf",
-            "state": {
-              "type": "empty",
-              "state": {}
-            }
           }
         ],
-        "currentTab": 3
+        "currentTab": 1
       }
     ],
     "direction": "vertical"
@@ -152,6 +132,7 @@
             "state": {
               "type": "backlink",
               "state": {
+                "file": "01 Action/01 Action.md",
                 "collapseAll": false,
                 "extraContext": false,
                 "sortOrder": "alphabetical",
@@ -178,8 +159,9 @@
     "width": 567.5,
     "collapsed": true
   },
-  "active": "d6300da5d0e1f0c2",
+  "active": "d8a137f67e112a9a",
   "lastOpenFiles": [
+    "conflict-files-obsidian-git.md",
     "01 Action/01 Tasks/01 Tasks.md",
     "01 Action/01 Action.md",
     "Home.md",
@@ -187,7 +169,6 @@
     "01 Action/02 Projects/Sample Project.md",
     "04 Templates/Wiki Entry.md",
     "04 Templates/Project Template.md",
-    "conflict-files-obsidian-git.md",
     "01 Action/05 Goals/05 Goals.md",
     "01 Action/04 Private/04 Private.md"
   ]

+ 10 - 8
04 Templates/Project Template.md

@@ -1,15 +1,18 @@
 ---
 tags: project
 ---
-
-# <% tp.file.title %>
+<%*
+	const projname = await tp.system.prompt("Project Name: ");
+	tp.file.rename(projname);
+%>
+#  <% projname %>
 
 ## Meta Data
 
-- Status:: <% tp.system.prompt("Status Type?", "Planned, Done, ...") %>
-- Type:: <% tp.system.prompt("Pentest Type?", "Web, Red Team, ...") %>
-- Start:: 
-- End:: <% tp.date.now("YYYY-MM-DD", 5) %>
+- Status::  <% tp.system.suggester(["Planned", "Done", "Postponed"], ["planned", "done", "postponed"], "Project Status:", "Project Status:") %>
+- Type::  <% tp.system.suggester(["Web Application", "Red Team", "Infrastructure", "Windows AD", "Windows Client", "Mainframe", "Mobile", "Network"], ["Web Application", "Red Team", "Infrastructure", "Windows AD", "Windows Client", "Mainframe", "Mobile", "Network"], "Project Type:", "Project Type:") %>
+- Start:: <% tp.date.now("YYYY-MM") %> -XX
+- End:: <% tp.date.now("YYYY-MM") %>-XX
 
 ---
 
@@ -36,6 +39,5 @@ Lorem Ipsum
 - Meeting Members: 
 	- TBD
 	- Marius Schwarz
-- Report Language: XX
-
+- Reporting Language: TBD
 Lorem Ipsum