Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
cumany committed Dec 6, 2023
1 parent ae660f1 commit 375df44
Show file tree
Hide file tree
Showing 14 changed files with 147 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
---
uid: 20230617145204
title: 卡片笔记的“输入即输出”
tags: [卡片笔记]
tags:
- 卡片笔记
description: 卡片笔记的“输入即输出”
author: asureading
type: practice
draft: false
editable: false
modified: 202300641171233533
modified: 20230617145204
---

# 卡片笔记的“输入即输出”
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ author: OS
type: awesome
draft: false
editable: false
modified: 202309140716127374911
modified: 20230914090055
---

# Obsidian 如何制作多栏布局
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
---
uid: 20231008182049
title: Obsidian 样式:可滚动的 Dataview 查询结果
tags: [Obsidian, dataview]
tags:
- Obsidian
- dataview
- css
description: 除了 limit,你还可以这样限制 dataview 的输出结果
author: Huajin
type: other
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
uid: 20230826162901
title: Obsidian 样式:将状态栏变为悬浮
tags: []
tags: [css]
description: Obsidian 样式:将状态栏变为悬浮
author: ProudBenzene
type: other
draft: false
editable: false
modified: 202309181400005954
modified: 20230918090138
---

# Obsidian 样式:将状态栏变为悬浮
Expand Down
1 change: 1 addition & 0 deletions 10-Obsidian/Obsidian外观/Obsidian的CSS代码片段.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ Obsidian 还支持一种外部样式代码引用的方式。
- [[Obsidian样式-HoverEditor插件弹窗中隐藏Properties属性面板]]
- [[Obsidian样式-建立书籍电影的卡片化视图]]
- [[Obsidian样式-简单更改Excalidraw工具栏布局]]
- [[Obsidian样式-可滚动的Dataview表格视图]]

#### Thino

Expand Down
61 changes: 61 additions & 0 deletions 10-Obsidian/Obsidian社区插件/Cache-Area.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<!--
* @Author: cumany [email protected]
* @Date: 2023-12-06 09:21:08
* @LastEditors: cumany [email protected]
* @LastEditTime: 2023-12-06 09:24:15
* @Description:
-->
---
uid: 20231204101133
title: Obsidian 插件:Cache-Area 给你一份电子草稿纸
tags:
- obsidian
- 插件
description: 为你提供了一个临时草稿纸
author: Huajin
type: other
draft: false
editable: false
modified: 20231204111955
---

# Obsidian 插件:Cache-Area 给你一份电子草稿纸

## 概述

这是一个缓存文件,如果你突然有什么想法想写下来,但是一时之间你又没有想好到底存在哪个文件里边,或者说就不打算单独存在某个文件中。以往这种情况需要建立一个文件放在根目录来应对,不那么丝滑且强迫症可能无法接受。但是现在,Cache-Area 为你提供了一个临时草稿纸,亦可以把他作为一个 ob 内部的便签,这是一个缓存文件,你输入到里面的数据不会保存到实际文件中,完美解决了这个问题。

> [!Note] 插件名片
> - 插件名称:Cache-Area
> - 插件作者:Boninall
> - 插件说明:自动将链接变成卡片样式
> - 插件项目地址:[点我跳转](https://github.com/Quorafind/Obsidian-Cache-Area)
顺带一提,插件作者是社区的 Boninall 大佬。起因是大佬在群里问了下:“有没有什么插件,可以在 ob 中新建笔记的时候不要直接保存到文件中,而是缓存,后边丢了就丢了,类似于白纸(参考 emeditor)”,然后 “我在想找不到就写一个了“、”我主要是连文件产生的这个行为都不希望有”、“会出现历史记录污染”。于是两天后,Cache-Area 应运而生。

## 使用

你输入到编辑器里面的数据不会保存到实际文件中,当你按 `Ctrl+s` 的时候才会实际弹出窗口让你保存,你只要关掉页面就这辈子都找不到了(当然可以从 localstorage 里面找找试试看,在关闭之前也会有提示是否需要保存)

### 方式一:借助命令面板

ctrl + p 打开命令面板,搜索 cache,选择 Create new cache area

![1701657552540.png](https://cdn.pkmer.cn/images/1701657552540.png!pkmer)

### 方式二:借助快捷键

在==设置 -> 快捷键==中搜索 cache-area,就可以看到插件提供的五个快捷键。给 Cache Area: Create new cache area 设置一个你习惯的快捷键即可。由于我平常不用 ctrl + n 新建文件,因此我把 ctrl + n 快捷键设置于生成这个电子草稿纸。

![Pasted image 20231204103802.png](https://cdn.pkmer.cn/images/Pasted%20image%2020231204103802.png!pkmer)

其他的几个选项也可以设置快捷键,他们的功能分别为

| 功能 | 作用 |
|:---------------------------------------:|:----------------------------------------------------------------------------------------------:|
| Clear all history | 清除所有历史记录。你在 cache 编辑器中输入的内容会记录到缓存里面,这个功能可以清楚缓存记录。 |
| Copy all history to clipboard | 把所有缓存记录都复制到剪切板中 |
| Create new cache area from clipboard | 生成缓存文件,并且把你剪切板中的内容粘贴进 cache 编辑器中 |
| Create new cache area from current file | 有点像为文件生成副本,但是这个副本又不会生成文件,而是以缓存的形式存在,你可以自由编辑这个副本 |

另外,本作者 Boninall 历时数月完成的另一款插件 Thino 正在 Pkmer 内测,走过路过不要错过。[Thino](https://pkmer.cn/products/productDetails/)。文末的==更新进展==处可以查看插件的具体功能以及使用方法。
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
uid: 20231202194222
title: Dataview 实战 - 列出不存在的链接页面
tags: [obsidian, dataview]
description: 列出不存在的链接页面
author: Huajin
type: other
draft: false
editable: false
modified: 20231202204615
---

# Dataview 实战 - 列出不存在的链接页面

不存在的链接就是你直接在某一篇笔记中直接敲 `[[...]]`,然后输入一个不存在的路径。对于文件来说,这些链接是文件的外链,也就是 `file.outlinks`,我们可以直接判断是否非空即可得到

`````示例代码
```dataview
TABLE WITHOUT ID
key AS "unresolved link",
rows.file.link AS "referencing file"
FROM "......"
FLATTEN file.outlinks as outlinks
WHERE !(outlinks.file) AND !(contains(meta(outlinks).path, "/"))
GROUP BY outlinks
```
`````




Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
uid: 20231204095825
title: Dataview 实战 - 如何查询结果的数目
tags: [obsidian, dataview]
description: 如何查询结果的数目
author: Huajin
type: other
draft: false
editable: false
modified: 20231204101126
---

# Dataview 实战 - 如何查询结果的数目

在 Dataview 中,我们可以利用 GROUP BY 来把结果聚合起来,然后利用 `length()` 函数即可求出结果的数目。

例如,检索不同作者的书的数目

`````示例代码
```dataview
TABLE rows.file.link, length(rows)
FROM "#book"
GROUP BY 作者
```
`````

![image.png|700](https://cdn.pkmer.cn/images/202312060916658.png!pkmer)
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
---
uid: 20230925122541
title: Dataview 列表进阶查询示例
tags: []
tags:
- dataview
description:
author: Huajin
type: other
draft: false
editable: false
modified: 20230928512423192540
modified: 20231206090040
---

# Dataview 列表进阶查询示例
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
uid: 20230928123603
title: Dataview 日历简单查询示例
tags: []
tags: [dataview]
description:
author: Huajin
type: other
draft: false
editable: false
modified: 202309281152193604
modified: 20230928090114
---

# Dataview 日历简单查询示例
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ author: Bon,PKMer
type: other
draft: false
editable: false
modified: 20231110002121404
modified: 20231109234602
---

# 分享至 Thino
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ author: Huajin
type: other
draft: false
editable: false
modified: 20231105000650
modified: 20231206090843
---

# Obsidian 插件:code tab 还能这么“玩”
Expand Down
6 changes: 5 additions & 1 deletion 10-Obsidian/Obsidian社区插件/obsidian-code-tab.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,4 +249,8 @@ WHERE degree = "Hard"
SORT id
```
````
`````
`````

## 相关文章

[[code-tab还能这么玩]]
9 changes: 5 additions & 4 deletions 主页.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
uid: 20230328174304
title: 主页
tags: []
tags:
description:
author:
type: awesome
draft: true
editable: false
modified: 20230911105659
modified: 20231206090739
---

# 主页
Expand All @@ -17,13 +17,14 @@ modified: 20230911105659
```dataview
table without id
file.link as "文件名",
author,
type as "类型",
tags as "标签",
uid,
modified as "修改时间"
from "" and !"Config"
sort tags desc
where modified = null
sort modified desc
limit 15
```

Expand Down

0 comments on commit 375df44

Please sign in to comment.