技巧汇总

非编辑操作

搜索(ctrl+shift+F)

有如下搜索 options

  • path
  • file
  • tag
  • line
  • section
line

在同一行搜索关键字. 注意, 如果包含 : 等其他字符, 使用下列方式来进行行匹配.

line:("keyword")

例子:

line:("https://stackoverflow.com/questions/16931770/makefile4-missing-separator-stop")

安装

1 安装代理可以访问插件

  # 配置代理,可以访问第三方插件社区市场
 --proxy-server=http://192.168.1.201:1080
C:\Users\RYefccd\AppData\Local\Programs\obsidian\Obsidian.exe --proxy-server=http://127.0.0.1:7890

   # 右点击属性,在后面添加配置

note: 插件可以丰富写文档的各种素材和便捷。还可以安装git插件。在线提交文档代码到github, windows下安装git如下文

1 windows 安装git.exe

  # 下载地址
  https://gitforwindows.org/

2 安装注意事项,一般选默认,有几个注意一下

3 windows下的git修改配置

  • 避免windows提醒文件的换行符. 这个只在windows系统上设置, 不能跨平台设置.

    # 双击桌面图标 打开git 
    git config --global core.autocrlf false
    
  • 设置git 的账号信息, 才能使用 obsidian-git 插件来进行提交(不在obsidian里提交代码忽略此条)

  • github有时候需要梯子,提交代码和拉取

# 测试一下网络是否连通
   # ssh -T git@github.com   (待测)

# 设置代理
git config --global http.proxy http://192.168.1.201:1080/
# git config --global http.proxy socks5://localhost:7890/

# 移除代理
git config --global --unset-all http.proxy
  • git config --list 可以查看所有的配置,包括username,proxy
git config -l

diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
http.sslbackend=openssl
http.sslcainfo=C:/Program Files/Git/mingw64/etc/ssl/certs/ca-bundle.crt
core.autocrlf=true
core.fscache=true
core.symlinks=false
core.fsmonitor=true
pull.rebase=false
credential.helper=manager
credential.https://dev.azure.com.usehttppath=true
init.defaultbranch=main
core.autocrlf=false
user.email=13296660374@163.com
user.name=mxy
http.proxy=socks5://localhost:7890/
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.symlinks=false
core.ignorecase=true
remote.sshorigin.url=git@github.com:republicroad/republic.git
remote.sshorigin.fetch=+refs/heads/*:refs/remotes/sshorigin/*
branch.main.remote=sshorigin
branch.main.merge=refs/heads/main
gui.wmstate=normal
gui.geometry=1061x563+160+160 233 255
remote.origin.url=https://github.com/republicroad/republic.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*

编辑技巧

图片引用

图片使用相对当前文档的单独目录

obsidian 默认粘贴图片使用的是 wiki 链接, 使用如[[文件名]]和 ![[图片名]] 表示. 可以在设置-->文件与链接 中的使用 wiki 链接关闭即可. 如下图所示:

这样可以保证 github 预览中可以渲染出图片.

文档引用

相对当前目录 vscode

相对当前仓库根目录 vscode

尽可能简短的模式 vscode

插件

excalidraw

git

BRAT

使用这个插件可以安装一些正在开发中(代码存在git服务器)的插件, 这样方便开发和测试.

vscode editor

使用 vscode editor 的风格和快捷键来打开代码文件(可配置语言代码文件).

Calendar

todo: 以后可以把干支也加入日历

Templater

https://silentvoid13.github.io/Templater/introduction.html

资料链接

obsidian 插件

手动安装插件

git_windows_crlf

obsidian_plugin_template