Second Brain: Crafted, Curated, Connected, Compounded on 10月02日 21:11
使用符号链接优化Obsidian笔记管理
index_new5.html
../../../zaker_core/zaker_tpl_static/wap/tpl_guoji1.html

 

本文介绍了如何利用符号链接(Symlinks)将书籍和博客等外部Git仓库内容整合到Obsidian的第二大脑保险库中。通过这种方式,用户可以在一个统一的Obsidian保险库内直接编辑和管理这些外部内容,极大地提升了工作效率。特别强调了对于使用Markdown编写的书籍,通过链接转换脚本,可以无缝引用第二大脑中的笔记,并且在重命名笔记时,书籍中的链接也能自动更新。此外,文章还详细说明了创建符号链接的具体步骤,并分享了在Obsidian中编辑、引用外部内容以及同步到移动设备的体验。

📚 **统一笔记管理**:通过符号链接将书籍和博客的Git仓库直接链接到Obsidian保险库,实现所有写作内容(包括第二大脑笔记、书籍、博客)在一个统一的Vault中管理,方便快速引用和搜索。

🔗 **无缝链接与自动更新**:对于使用Markdown编写的书籍,可以利用脚本将Obsidian的Wiki链接(`[[note]]`)自动转换为指向第二大脑笔记的链接。更重要的是,当第二大脑中的笔记被重命名时,书籍中的链接也会自动更新,解决了手动维护的痛点。

💻 **直接编辑与同步**:在Obsidian中可以直接编辑链接的博客和书籍内容,这些更改会同步到原始的Git仓库。这种整合也意味着这些内容可以通过Obsidian Sync同步到移动设备,实现跨平台访问和编辑。

⚠️ **同步注意事项**:在移动设备上使用Obsidian Sync同步包含符号链接的保险库时,需谨慎处理。文章提到可能出现索引问题,建议排除相关文件夹或删除后重新同步,以避免潜在冲突,并强调在电脑端进行主要修改更为稳妥。

This is a note about how I link my book and Blog to my Obsidian Second Brain Vault. Both of the folders are git repos that usually I edit in a separate Vault or with Neovim. But with Symlinks, thanks to Lazar I linked them directly to my main Vault and I can edit them now from within one single Vault.

Why is this important or how does that help?

It helps me, especially for my book which I write in Markdown and references my second brain notes with plain wiki-links [[]]. I have a script or mdbook-extension that converts automatically all my links from Wikilinks like [[my link]] to my Second Brain links ssp.sh/brain/my-link.

This was already pretty cool. But whenever I renamed a note in my second brain, I had to update my book and do the rename there too. But not anymore, see below.

Also linking my blog into the second brain, only the content part, it’s just so cool to have one single vault for all my heavy writing. Quickly referencing and searching the content I have written in the book or blog is so cool.

Using Symbolic Links to reference my blog inside my vault:

1234
# cd to second brain where you want the symlinks to beln -s ~/Documents/git/sspaeti.com/sspaeti-hugo-blog/content contentln -s ~/Documents/git/sspaeti.com/sspaeti-hugo-blog/static staticln -s ~/Documents/git/sspaeti.com/sspaeti-hugo-blog/assets assets

Gives me this:

123
lrwxr-xr-x@  1 sspaeti  staff   65 Aug  8 10:21 assets -> /Users/sspaeti/Documents/git/sspaeti.com/sspaeti-hugo-blog/assetslrwxr-xr-x@  1 sspaeti  staff   66 Aug  8 10:20 content -> /Users/sspaeti/Documents/git/sspaeti.com/sspaeti-hugo-blog/contentlrwxr-xr-x@  1 sspaeti  staff   65 Aug  8 10:21 static -> /Users/sspaeti/Documents/git/sspaeti.com/sspaeti-hugo-blog/static

# Obsidian

And now in Obsidian I can edit directly my blogs !!!

I created even a Template 🕸️ ssp.sh Template that I set as default in Templathttps://www.ssp.sh/brain/Pasted%20image%2020240809153441.png20240809153441.png">

Wow, you can even reference them, and finding them with [[]], this is amazing:

# DEDP Book

That means I can write my book inside my second brain vault as well, and even use my wikilinks to my second brain !!!!!!!!!!!!!!

And they even show uphttps://www.ssp.sh/brain/Pasted%20image%2020240808103958.png/Pasted%20image%2020240808103958.png">

This is almost too good to be true. And everything is still in its own GitHub, meaning I still see all the changes in case I mess something up.

I’m curious if related links that I use whttps://www.ssp.shhttps://www.ssp.sh/brain/Pasted%20image%2020240808103908.png>

# Renaming

🤯: If I rename the linked note in my obsidian vault, the links in my DEDP book get renamed as well!

E.g., for the blog and book, it actually syncs all the notes to Obsidian Sync because, for Obsidian, these are normal files. Meaning I even have them on mobile!

Attention

So if I change them on my mobile, they might conflict with what I have on my machine. Not sure if Obsidian sync will then overwrite what has been stored on the local disk, i need to test, but probably yes.

    so the best thing to change these on the computer as there is only one file and hopefully obsidian sync is not conflicting.But we’ll see. I always can revert back to Obsidian Sync, and also in Git.

Update after Tests:
It, seems to work quite well between sync mobile and my computer. At least if the Macbook is connected and syncs it directly to the file system. Maybe it’s different if the Mac is offline, changes are made on mobile and then I’d change without a second brain vault, but the book vault

Update 2025-01-20:
Potentially Symlink can make problems in Obsidian Mobile Troubleshoot, see Problems with Indexing Crashing Obsidian - Help - Obsidian Forum. And I had the problem that the “Vault was indexing on each open on Mobile”. After excluding this folder from the sync on mobile and deleting them, after a while, it worked, and the Obsidian Sync/Indexing Vault worked back as normal. I still have the folders on my Desktop without any problems.

More on how I publish my second brain publicly see Public Second Brain with Quartz.

# Using the same Technique with HackMD

See HackMD.

YouTube Video

I created a YT video about Efficient Markdown Collaboration (HackMD, Obsidian, Neovim, VSCode).


Origin: A lazy man’s Obsidian + Astro workflow integration - YouTube
References:
Created 2024-08-08

Fish AI Reader

Fish AI Reader

AI辅助创作,多种专业模板,深度分析,高质量内容生成。从观点提取到深度思考,FishAI为您提供全方位的创作支持。新版本引入自定义参数,让您的创作更加个性化和精准。

FishAI

FishAI

鱼阅,AI 时代的下一个智能信息助手,助你摆脱信息焦虑

联系邮箱 441953276@qq.com

相关标签

Obsidian 符号链接 第二大脑 笔记管理 Markdown Git Obsidian Sync Symbolic Links Second Brain Note Management Obsidian Plugin Productivity
相关文章