Limfxcodeex 是一个用来快速将markdown作为文章上传至limfx网站的VS Code插件。
安装后,用vscode打开您的markdown文件,点击编辑器右上角的快速发布按钮以体验一键发布!
快速上传当前激活的md文件
指令: Limfx-this document
快捷键: Ctrl+L U
菜单按钮:

示例:

要求:
功能:
- 快速上传当前激活的markdown以及其中被引用的本地图片至您的limfx账号并保存为草稿。
- 插件会自动生成两个json文件,一个在您的workspace,一个在md所在目录,分别用来记录您的账号信息和文章信息,帮助您以后在该workspace下使用插件时自动登录,并在第二次发布某md文件时自动转换为更新模式。
更新文章示例:
choose file(s) in the same folder to upload
this requires:
> * the chosen files should `only` contains one md file and the images in its contents, otherwise the extra files will be ignored
> * the image should not be larger than `10 mb`.
> * the whole size of files should not be larger than `15mb`
this will help you:
- quick upload the md file and images and convert to a draft article on your limfx accout
- extension will auto generate a local json file in the dir, which will help you auto login and update(instead of insert) article the next time.
设置服务器地址
command: Limfx_set host
此功能目前只为开发者准备。更改服务器地址可能带来bug,请谨慎使用!
更换账号
command: Limfx-change account
部分特殊用户可能又多个账号,此时使用此命令切换账号。
准备发布
command: Limfx-prepublish
快捷键: Ctrl+L P
菜单按钮:
这个指令会在md文件中你的光标处插入三行注释,分别代表文章关键字,文章描述和文章封面。如果不加入这三行注释,则不会自动更新已上传文章的这三个属性。
<!-- keywords:key1;key2; -->
<!-- description:this is a description -->
拉取文章
command: Limfx-fetch remote article
快捷键: ctrl+L F
您可以通过这个命令快速的从limfx服务器上拉取您已发布的文章,并在workspace存为markdown文件。
None
None
有时候可能出现一下奇怪的bug,如果确定是插件的问题,您可以退出vscode,手动删除 limfxbasicinfo.json 和 limfxinfo.json 两个文件,然后打开vscode再次尝试。
示例:

limfxbasicinfo.json 的默认保存位置从 workspace folder 改到了 /.vscode 目录, 所以在使用git时您不需要担心存在此文件中的私人账户信息被上传(只要.gitignore里有.vscode)A brand new version!

Ctrl+L U for Limfx-this document and Ctrl+L P for Limfx-prepublishNote:As the extension can automatically save your host url, if you want to republish
your article to the new domain, you may need to manully reset the host by command
Now you can publish files with same names in different directory.
Attention, ver 0.1.0 is almost unuseable due to the serialization bug, we recommend you to update the extension to ver 0.1.1 as quick as possibleIn the past, one you have two md files in the same dir, of which both published through the extension, the extension can only remember one of them to update, the another one will be inserted as a new one the next time you want to publish it. This is not the case in the new version anymore.
本文章使用limfx的vsocde插件快速发布