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

插件需求 #1

Open
ben7th opened this issue Nov 13, 2014 · 0 comments
Open

插件需求 #1

ben7th opened this issue Nov 13, 2014 · 0 comments

Comments

@ben7th
Copy link
Owner

ben7th commented Nov 13, 2014

sublime 插件需求:

commands:

  1. 输入一个标题,在当前工作 folder 的 _miniwiki 文件夹下创建带有指定头部模板内容的 .markdown 文件。指定的头部是:

    ---
    layout: post
    title: 输入的标题
    permalink: 自增 ID.html
    ---
    

    其中,自增ID根据工程下的 _miniwiki/list 计算得知

  2. 获得 _miniwiki 下的 .markdown 文件清单,在一个列表中让用户选择,针对选定的条目,在当前编辑器内插入 [标题](:permalink) 这样的链接(已初步实现)

  3. 在某个 .markdown 文件编辑时,按快捷键弹出一个UI,输入一个新标题来改名。改名后,当前 markdown 的文件名变为 新标题.markdown,头部信息中的 title 内容值变为 新标题。同时,搜索 _miniwiki 下所有条目,找到其中对应的链接,逐一修改文件内容。

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

No branches or pull requests

1 participant