Smart List Input

approved

by hygyh

智能 Markdown 列表输入:中文标点(1、1。等)自动转标准序号,支持有序/无序/待办列表快速切换,子项类型与所在层级保持一致。Smart Markdown list input: auto-converts Chinese punctuation to standard numbering, quick-switches ordered/bullet/task lists, keeps child types consistent with their level. - This plugin has not been manually reviewed by Obsidian staff.

83 downloadsUpdated 1mo agoMIT

Smart List Input

An Obsidian plugin that makes Markdown list input effortless — auto-converts Chinese punctuation to standard numbering, and switches between ordered / bullet / task lists with a keystroke.

Core effects

You typeAuto becomes
1、 then space1.
Type - on the next line of an ordered listIndented bullet child
Type on the next line of an ordered listTask child - [ ]
Press Tab on 2. content- content bullet child, never a nested ordered list
Press Shift+Tab on a child itemRestore to an ordered item at the same level
Press Backspace at the end of a markerDelete the whole marker, keep content

Features

1. Chinese punctuation → standard numbering

Type a Chinese ordinal, then press space — it becomes a standard Markdown ordered list.

type:  1、    3。    12,
output: 1.     3.     12.

2. Type - on the ordered list's next line → bullet child

type:                       output:
1. item                     1. item
2.         ← type - →           -   ← cursor here

3. Type [ / on the ordered list's next line → task child

type:                       output:
1. item                     1. item
2.         ← type 【 →          - [ ]   ← cursor here

4. Press Tab on an ordered line → child, type auto-adapts

The child type matches its context. It never creates a nested ordered list.

bullet prev:  2. content  →  - content
task prev:    2. content  →  - [ ] content

5. Press Shift+Tab on a child → restore to ordered

type:                       output:
1. item                     1. item
   - child  ← ⇧Tab →       2. child

6. Task markers: standard & non-standard

- [ ] todo      ✓ standard
-[x]done       ✓ non-standard (full-width brackets, no spaces)

7. Backspace deletes the whole marker

cursor: 1. item|    Backspace →  item      (removes "1. ", keeps content)
cursor: - [ ] todo| Backspace →  todo      (removes "- [ ] ")

Installation

Search "Smart List Input" in Obsidian's community plugin browser.

Development

npm install
npm run dev     # watch mode
npm run build   # build main.js
npm run test    # unit tests (171)

License

MIT


智能列表输入 · Smart List Input

一个让 Markdown 列表输入更顺手的 Obsidian 插件:中文标点自动转标准列表,有序 / 无序 / 待办列表一键切换。

核心效果

你输入自动变成
1、 然后按空格1.
有序列表下一行输入 -缩进为无序子项
有序列表下一行输入 待办子项 - [ ]
2. 内容 上按 Tab- 内容(无序子项,绝不变成嵌套有序)
在子项上按 Shift+Tab还原为同层级有序列表
光标在标记末尾按 Backspace删除整个标记,保留内容

功能详情

1. 中文标点 → 标准序号

输入中文序号后按空格,自动转成标准 Markdown 有序列表。

输入:  1、    3。    12,
输出:  1.     3.     12.

2. 有序列表下一行输入 - → 无序子项

输入:                          输出:
1. 事项                        1. 事项
2.         ← 输入 - →              -   ← 光标在这里

3. 有序列表下一行输入 [ / → 待办子项

输入:                          输出:
1. 事项                        1. 事项
2.         ← 输入 【 →             - [ ]   ← 光标在这里

4. 有序行按 Tab → 下级子项(类型自适应)

子项类型自动与上下文一致,绝不生成嵌套有序列表。

上一行是无序:  2. 内容  →  - 内容
上一行是待办:  2. 内容  →  - [ ] 内容

5. 子项按 Shift+Tab → 还原为有序列表

输入:                          输出:
1. 事项                        1. 事项
   - 子项    ← ⇧Tab →        2. 子项

6. 待办标记兼容标准与非标准写法

- [ ] 待办          ✓ 标准写法
-[x]已完成         ✓ 非标准(全角括号、无空格)

7. Backspace 一键删除列表标记

光标: 1. 事项|    按 Backspace →  事项      (删掉 "1. ",保留内容)
光标: - [ ] 待办| 按 Backspace →  待办      (删掉 "- [ ] ")

安装

在 Obsidian 社区插件市场搜索 "Smart List Input" 安装。

开发

npm install
npm run dev     # 开发 watch
npm run build   # 构建 main.js
npm run test    # 单元测试(171)

许可证

MIT

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.