Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持 kotlin, 使用 DayOne 模式的标签操作 #9

Merged
merged 9 commits into from Jul 29, 2018

Conversation

urakalee
Copy link
Contributor

DayOne 模式的标签操作:

  1. HEADER 只有一个按钮, 点击在 H1~H6 循环切换
  2. LIST 只有一个按钮, 点击在 List/OrderList/AlphabetList 之间切换
  3. Todo/Checkbox 只有一个按钮, 点击在 Checked/Unchecked之间切换
  4. 增加 Indent/Dedent 按钮, 用于增加/减少缩进(目前只处理 4 空格缩进)
  5. Quote 用于展示如何增加一个简单标签(再点一下应该可以恢复成未引用状态?)

TODO: 增加 Unformat 功能, 清除格式

@Shouheng88
Copy link
Owner

明天处理一下 :)

@urakalee
Copy link
Contributor Author

按钮的处理看看是不是你想要的, 我多用了一下发现还是支持在有无格式之间切换比较爽, 于是后来又改了, 如果需要我可以重发pull request.

比如按一下header, 变成1级标题, 再按5下, 变成6级标题, 再按一下, 恢复到正文.
再比如按todo/checkbox, 可以在未完成/完成/取消todo之间切换.

dayone是把list和todo共用了一个按钮, 不支持有序列表, 但我觉得有序列表还是有用的.

@Shouheng88 Shouheng88 merged commit 3cbf06c into Shouheng88:master Jul 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants