Obsidian配置

插件

1:Annotator

pdf批注插件,使用方法:新建一个markdown文件,在文件的头部必须时开头添加以下内容:

---
annotation-target: xxx.pdf
---

2:Hidden Folder

用正则表达式隐藏文件夹的,我的设置隐藏以.assets结尾的文件夹:

\.assets$

3:Colored Tags

使不同tag按照不同颜色显示,且继承关系相同的tag会继承上一层的颜色:
在这里插入图片描述

4:Obsidian Git

需要先配置好本地的git并且init push后才能使用,其设置如下:
在这里插入图片描述

5:Style Settings

配合obsidian默认的ccs使用更改字体颜色的。该插件readme文档提供了默认的ccs文件。

6:Templater(可选)

可以根据模板文件生成新的文件(Alt+N),也可以插入模板(Alt+E)到当前位置(光标处)所有模板设置放在template.assets文件夹下。
或直接使用软件自带的核心插件“模板”,并设置模板所在文件夹为:template.assets

CSS

使状态栏平铺显示、调整markdown显示使其文字两端对齐、增加预览窗口大小、markdown图片默认居中显示、增加全屏状态下的文字宽度即调整页边距、更改引用模块的字体颜色使其变成灰色以区分正文文本(也提供了更改引用模块背景颜色的css)。

/* Full status bar */
.status-bar {
  --status-bar-position: static;  /* Full it. */
  --status-bar-radius: 0 0 0 0;  /* Make the upper left corner rounded corner disappear. */
}


/* Adjusting markdown text so that it is aligned at both ends */
.cm-s-obsidian,
.markdown-preview-view {
  text-align: justify;
  hyphens: auto;
}


/* Increase the size of the link preview window */
.popover.hover-popover {
  transform: scale(0.8); /* makes the content smaller */
  max-height: 800px; /* was 300 */
  min-height: 100px;
  width: 500px; /* was 400 */
}
.popover.hover-popover .markdown-embed {
  height: 800px;
}


/* Rendering a centered image */
img {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.markdown-source-view.mod-cm6 .cm-content > * {
  margin: auto !important;
}


/* Bigger the text with in every mode */
body{
  --file-line-width: 65rem;  /* default is 45rem */
}
/* .markdown-preview-view.is-readable-line-width .markdown-preview-sizer {
  max-width: 95%;
}
.markdown-source-view.mod-cm6.is-readable-line-width .cm-sizer {
  max-width: 95%;
} */


/* Change blockquote background color & text color. */
/* .markdown-rendered blockquote {
  --blockquote-background-color: #e5e1f7;
}
.markdown-preview-view blockquote {
  color: #666666;
} */


/* Just change blockquote text color. */
.markdown-preview-view blockquote {
  color: #888888;
}

字体风格调整

1:调整字体

设置-->外观-->字体中更改界面字体正文字体微软雅黑

2:调整字体颜色

下载插件Style Settings和对应的Obsidian默认主题的所有可修改文件的css,这个css可以在插件的GitHub上找到。
随后更改字体颜色为#333333即可。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

D-A-X

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值