vault backup: 2025-04-04 23:31:20

This commit is contained in:
zhangkun9038@dingtalk.com 2025-04-04 23:31:20 +08:00
parent c5d69fcfd8
commit 6517a95fee
8 changed files with 21158 additions and 38 deletions

View File

@ -3,5 +3,6 @@
"obsidian-git",
"obsidian-linter",
"terminal",
"table-editor-obsidian"
"table-editor-obsidian",
"dataview"
]

20876
.obsidian/plugins/dataview/main.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,11 @@
{
"id": "dataview",
"name": "Dataview",
"version": "0.5.68",
"minAppVersion": "0.13.11",
"description": "Complex data views for the data-obsessed.",
"author": "Michael Brenan <blacksmithgu@gmail.com>",
"authorUrl": "https://github.com/blacksmithgu",
"helpUrl": "https://blacksmithgu.github.io/obsidian-dataview/",
"isDesktopOnly": false
}

141
.obsidian/plugins/dataview/styles.css vendored Normal file
View File

@ -0,0 +1,141 @@
.block-language-dataview {
overflow-y: auto;
}
/*****************/
/** Table Views **/
/*****************/
/* List View Default Styling; rendered internally as a table. */
.table-view-table {
width: 100%;
}
.table-view-table > thead > tr, .table-view-table > tbody > tr {
margin-top: 1em;
margin-bottom: 1em;
text-align: left;
}
.table-view-table > tbody > tr:hover {
background-color: var(--table-row-background-hover);
}
.table-view-table > thead > tr > th {
font-weight: 700;
font-size: larger;
border-top: none;
border-left: none;
border-right: none;
border-bottom: solid;
max-width: 100%;
}
.table-view-table > tbody > tr > td {
text-align: left;
border: none;
font-weight: 400;
max-width: 100%;
}
.table-view-table ul, .table-view-table ol {
margin-block-start: 0.2em !important;
margin-block-end: 0.2em !important;
}
/** Rendered value styling for any view. */
.dataview-result-list-root-ul {
padding: 0em !important;
margin: 0em !important;
}
.dataview-result-list-ul {
margin-block-start: 0.2em !important;
margin-block-end: 0.2em !important;
}
/** Generic grouping styling. */
.dataview.result-group {
padding-left: 8px;
}
/*******************/
/** Inline Fields **/
/*******************/
.dataview.inline-field-key {
padding-left: 8px;
padding-right: 8px;
font-family: var(--font-monospace);
background-color: var(--background-primary-alt);
color: var(--nav-item-color-selected);
}
.dataview.inline-field-value {
padding-left: 8px;
padding-right: 8px;
font-family: var(--font-monospace);
background-color: var(--background-secondary-alt);
color: var(--nav-item-color-selected);
}
.dataview.inline-field-standalone-value {
padding-left: 8px;
padding-right: 8px;
font-family: var(--font-monospace);
background-color: var(--background-secondary-alt);
color: var(--nav-item-color-selected);
}
/***************/
/** Task View **/
/***************/
.dataview.task-list-item, .dataview.task-list-basic-item {
margin-top: 3px;
margin-bottom: 3px;
transition: 0.4s;
}
.dataview.task-list-item:hover, .dataview.task-list-basic-item:hover {
background-color: var(--text-selection);
box-shadow: -40px 0 0 var(--text-selection);
cursor: pointer;
}
/*****************/
/** Error Views **/
/*****************/
div.dataview-error-box {
width: 100%;
min-height: 150px;
display: flex;
align-items: center;
justify-content: center;
border: 4px dashed var(--background-secondary);
}
.dataview-error-message {
color: var(--text-muted);
text-align: center;
}
/*************************/
/** Additional Metadata **/
/*************************/
.dataview.small-text {
font-size: smaller;
color: var(--text-muted);
margin-left: 3px;
}
.dataview.small-text::before {
content: "(";
}
.dataview.small-text::after {
content: ")";
}

View File

@ -1,21 +1,21 @@
{
"main": {
"id": "134fa9ed79794f95",
"id": "6c7ceb2139abce3f",
"type": "split",
"children": [
{
"id": "b0244718572e39cd",
"id": "c7e2d8a551657180",
"type": "tabs",
"children": [
{
"id": "579c169a23885fbe",
"id": "5c17d1698a118a5f",
"type": "leaf",
"state": {
"type": "markdown",
"state": {
"file": "new notes/快捷键设置.md",
"mode": "source",
"source": true
"mode": "preview",
"source": false
},
"icon": "lucide-file",
"title": "快捷键设置"
@ -27,15 +27,15 @@
"direction": "vertical"
},
"left": {
"id": "b11c873647793e6d",
"id": "4a16ceff2f188a44",
"type": "split",
"children": [
{
"id": "cc636d003e2a117c",
"id": "c45d5472a01fa0c3",
"type": "tabs",
"children": [
{
"id": "c4e53b5293252b33",
"id": "09d53b405976b21c",
"type": "leaf",
"state": {
"type": "file-explorer",
@ -48,7 +48,7 @@
}
},
{
"id": "8b59296c52c5d26a",
"id": "ad3f6423219ed8e7",
"type": "leaf",
"state": {
"type": "search",
@ -65,7 +65,7 @@
}
},
{
"id": "a18b52e320193e6b",
"id": "f1803f8a17f23709",
"type": "leaf",
"state": {
"type": "bookmarks",
@ -78,23 +78,23 @@
}
],
"direction": "horizontal",
"width": 271.5
"width": 300
},
"right": {
"id": "455d8d04d9e49a95",
"id": "97b6734b8c030920",
"type": "split",
"children": [
{
"id": "73e50e2622177203",
"id": "32b176fd8dff1165",
"type": "tabs",
"children": [
{
"id": "9b67270d05300062",
"id": "f2e4add240703050",
"type": "leaf",
"state": {
"type": "backlink",
"state": {
"file": "Chats/New Chat.md",
"file": "new notes/快捷键设置.md",
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical",
@ -104,25 +104,25 @@
"unlinkedCollapsed": true
},
"icon": "links-coming-in",
"title": "Backlinks for New Chat"
"title": "Backlinks for 快捷键设置"
}
},
{
"id": "fb227e453f2398b5",
"id": "6f91e2bf8c196925",
"type": "leaf",
"state": {
"type": "outgoing-link",
"state": {
"file": "Chats/New Chat.md",
"file": "new notes/快捷键设置.md",
"linksCollapsed": false,
"unlinkedCollapsed": true
},
"icon": "links-going-out",
"title": "Outgoing links from New Chat"
"title": "Outgoing links from 快捷键设置"
}
},
{
"id": "a9ea274143dcadc2",
"id": "ef29c0acdfab7689",
"type": "leaf",
"state": {
"type": "tag",
@ -137,13 +137,13 @@
}
},
{
"id": "dfc035c61565f8f7",
"id": "b07f0e0bbd9a2a1d",
"type": "leaf",
"state": {
"type": "outline",
"state": {
"file": "new notes/快捷键设置.md",
"followCursor": true,
"followCursor": false,
"showSearch": false,
"searchQuery": ""
},
@ -152,7 +152,7 @@
}
},
{
"id": "66ff26b0cd3d74f1",
"id": "074859f93ca00fe5",
"type": "leaf",
"state": {
"type": "copilot-chat-view",
@ -166,11 +166,10 @@
}
],
"direction": "horizontal",
"width": 321.5
"width": 390.5
},
"left-ribbon": {
"hiddenItems": {
"obsidian-git:Open Git source control": false,
"switcher:Open quick switcher": false,
"graph:Open graph view": false,
"canvas:Create new canvas": false,
@ -178,25 +177,18 @@
"templates:Insert template": false,
"command-palette:Open command palette": false,
"copilot:Open Copilot Chat": false,
"obsidian-git:Open Git source control": false,
"terminal:Open terminal": false,
"table-editor-obsidian:Advanced Tables Toolbar": false
}
},
"active": "579c169a23885fbe",
"active": "5c17d1698a118a5f",
"lastOpenFiles": [
"Task.md",
"Welcome.md",
"欢迎.md",
"new notes/chat history.md",
"new notes/Untitled.md",
"Chats/New Chat.md",
"new notes/快捷键设置.md",
"copilot-conversations/天麻怎么吃@20250404_120810.md",
"attachments",
"未命名文件夹",
"new notes",
"copilot-conversations",
"new notes/2025-04-04.md",
"copilot-conversations/在ubuntu下可不可以把几个物理硬盘挂在到一个逻辑目录下@20250404_111308.md",
"Chats"
"copilot-conversations/如果我使用dataview插件查询在我的笔记目录里,是不是我需要事先有个目录里面的所有笔记都是包含特定模版的数据,这样更便于查询,或者说只有文档内包含特定属性的文档,那么查询结果中才能包含特定属性的文@20250404_232407.md",
"Chats/New Chat.md"
]
}

View File

@ -3,6 +3,8 @@ epoch: 1743736388464
modelKey: qwen-max-latest|3rd party (openai-format)
tags:
- copilot-conversation
- lvm
- ubuntu
---
**user**: 在ubuntu下可不可以把几个物理硬盘挂在到一个逻辑目录下

View File

@ -0,0 +1,97 @@
---
epoch: 1743780247714
modelKey: qwen-max-latest|3rd party (openai-format)
tags:
- copilot-conversation
- dataview
- plugin
---
**user**: 如果我使用dataview插件查询在我的笔记目录里,是不是我需要事先有个目录里面的所有笔记都是包含特定模版的数据,这样更便于查询,或者说只有文档内包含特定属性的文档,那么查询结果中才能包含特定属性的文档,
[Timestamp: 2025/04/04 23:24:07]
**ai**: Copilot index does not exist. Please index your vault first!
1. Set a working embedding model in QA settings. If it's not a local model, don't forget to set the API key.
2. Click 'Refresh Index for Vault' and wait for indexing to complete. If you encounter the rate limiting error, please turn your request per second down in QA setting.
[Timestamp: 2025/04/04 23:24:07]
**user**: 如果我使用dataview插件查询在我的笔记目录里,是不是我需要事先有个目录里面的所有笔记都是包含特定模版的数据,这样更便于查询,或者说只有文档内包含特定属性的文档,那么查询结果中才能包含特定属性的文档,
[Timestamp: 2025/04/04 23:24:31]
**ai**: 是的,你的理解是正确的。使用 Dataview 插件查询笔记时,确实需要笔记中包含特定的属性或元数据(例如 YAML frontmatter 或者内联字段),这样 Dataview 才能识别并返回相关的查询结果。
以下是两种主要的情况和建议:
---
### 1. **笔记包含特定模板的数据**
如果你希望查询的结果更加结构化和一致,建议在创建笔记时使用统一的模板。模板可以确保每篇笔记都包含相同的属性(例如 `日期``标签``状态`。这样Dataview 查询时可以直接基于这些属性进行筛选和排序。
**示例:**
假设你有一个模板如下:
```yaml
---
日期: 2023-10-01
标签: 工作
状态: 进行中
---
```
你可以用 Dataview 查询所有状态为“进行中”的笔记:
```dataview
LIST
FROM "工作目录"
WHERE status = "进行中"
```
这种方式的优点是:
- 数据结构化,便于查询。
- 查询结果更精确,减少无效数据。
---
### 2. **只有包含特定属性的文档才会出现在查询结果中**
Dataview 只会返回那些明确包含你查询的属性的文档。如果某些笔记没有定义某个属性(例如 `状态`),那么这些笔记不会出现在查询结果中。
**示例:**
假设你有以下两篇笔记:
- 笔记 A
```yaml
---
日期: 2023-10-01
标签: 工作
状态: 进行中
---
```
- 笔记 B
```yaml
---
日期: 2023-10-02
标签: 学习
---
```
如果你运行以下查询:
```dataview
LIST
FROM "工作目录"
WHERE status = "进行中"
```
只有笔记 A 会出现在结果中,因为笔记 B 没有定义 `状态` 属性。
---
### 总结
- 如果你希望查询结果更精确且易于管理,建议为笔记设置统一的模板,并确保每篇笔记都包含必要的属性。
- 如果笔记中没有定义某个属性Dataview 不会将其纳入查询结果。因此,确保笔记中有相关属性是关键。
如果你已经在使用模板或者有现成的笔记目录,可以通过 Dataview 的 `TABLE``LIST` 查询来验证哪些笔记符合你的条件。例如:
```dataview
TABLE date, tags, status
FROM "工作目录"
```
这可以帮助你快速检查哪些笔记缺少必要的属性,并补充完整。
[Timestamp: 2025/04/04 23:24:57]

0
new notes/2025-04-04.md Normal file
View File