搜狗输入法短语自动输入Front-matter

每次打Markdown到自己的博客里去都要自己手输Front-matter,用惯了自动化工具的我表示很不爽!

那有什么办法可以让电脑自动输入Front-matter呢?

好像……思前想后,就搜狗输入法的自定义短语可以做到。

  1. 打开更多设置

    image-20211115210751127

  2. 自定义短语设置

    image-20211115211325488

  3. 直接编辑配置文件

    image-20211115211357460

  4. 在最后一行假如如下配置

    image-20211115211443802

1
2
3
4
5
6
7
8
9
10
11
blogfm,1=
#---
title: 可爱小标题
date: $year/$month/$day $fullhour:$minute:$second
updated: #$year/$month/$day $fullhour:$minute:$second
comments: true
tags:
- 标签1
categories:
- 分类1
---

​ 或者

1
2
3
4
5
6
7
8
9
10
11
12
blogfm,1=
#---
title: 可爱小标题
date: $year/$month/$day $fullhour:$minute:$second
updated: #$year/$month/$day $fullhour:$minute:$second
comments: true
tags:
- 标签1
categories:
- 分类1
typora-root-url: ..
---
  1. Ctrl+s保存配置文件,然后退出

  2. 下回输入时直接中文输入法,blogfm,直接自动输出了所需要的Front-matter。

    image-20211115212128613