vscode hair blog plug-in update v0.1.0 (may be relatively easy to use point of it)

Write once a distance this vscode hair blog at blog Park plugin has passed a long time, functionality that time vscode plug-in is not as powerful questions to the period, it was suggested that recommendation, I have not been taking the time to maintain, deep feel sorry until someone added to my group where I was determined to find the time to maintain it, after all, people still want to use, and can not make everyone disappointed. Well, do not talk nonsense, Here are some updated content.

installation

Installation from the marketplace

Click on the left of the bar above the extension icon, and then in the input box WriteCnblogcan be found in the plug-in, click to install it.

提示:如果是macOS或者Linux可能会从GitHub上下载一个支持获取剪切板图片的插件。

Download vsix installation

If you do not want to install directly from the expansion of the market, you can also download the compiled vsix be installed from the GitHub, Download https://github.com/kotcmm/writecnblog/releases
after download to a local, as shown below for installation

User-specific Configuration

After installing the plug-in, user information needs to be configured before the next operation can be performed

  • Click the Configure User Information
  • Enter MetaWeblog access address, press the Enter key (in the configuration blog Park pulled the bottom you can see the address, copy over populated)
  • Enter the user name and press Enter
  • Enter the password and press Enter

MetaWeblog访问地址And 用户名it is stored in vscode disposed inside, 密码in a storage system which Windowns credentials, or the mac keychain.

If the configuration information entered is correct, you will be prompted to configure the success, and then blogidalso to update the configuration inside vscode

If you have to change your password, you can configure the settings found in the list of articles inside the More button to reset the user information

Select the blog article storage directory

You need to select a folder as a blog workspace, you can click the refresh button above the list of articles to be operational before the blog post, if you have not been selected workspace, it will pop up a dialog box to select a folder.

Please select an empty folder, select the folder after you generate inside a folder in the .cnblogfolder, and then pull up the article on the website to select the folder inside.

If the article there are markdown picture format, the picture will download to a local. Stored in the imagesfolders inside, then the path to the replacement cost of the article to the file path.

  • .cnblog\imageIndexMap storage picture.
  • .cnblog\indexRelated information article
  • .cnblog\postStorage site pulled down the content of the article, the article for the workspace can be modified contrast

After you select the workspace, folder path will be stored vscode configuration which, if preceded Choose the workspace, click the Refresh button only recently pulled the article.

Default pulls recent 100 articles, if you need to change this value, you can configureRecent Post Count

Features

Article Preview

As long as the article published on the blog or save a draft park site, you can preview it. Click the Preview button on the title of the article, a prompt box will pop up asking if you visit the website, click to open the link you can jump to the page preview article

New Articles

New article button on the list of articles to bring up an input box, enter the article title, will create a new file, the file extension md. File name format {文章标题}.{本地文章id}}.{md}, it will only display the article title in the list view inside.

After the completion of the new article, you can open the file for editing the contents of the article, you can also add other operating articles classification.

save draft

After the completion of the new article, the article will be prompted to click on the preview is not yet posted to the website, you can click on the shortcut button on the title of the article, save drafts to park on blog sites.

modify articles

Modify the content of the article

Local synchronization can be done to modify the site can also be modified to pull on a local website.

Note: Local After modification, the article is not directly display the M logo, there is no thought of a better implementation. After modifying the site pulled to a local update only .cnblog\postthe inside of the post. After working space inside the content of the article you need to compare his own, copy and paste over.

Modify the title of the article

Local changes to your saved directly to the site, you can also retrieve local modification was finished on site

Delete Article

If this is the site to delete the article, it is not synchronized back to delete the local paper. Click to delete the article need only be local to local articles deleted. But this time will prompt the article does not exist.

Paste Picture

I do not know why not open electron vscode picture pasted interface. I want only other solution.

Although there are other online solutions such as electron-image-ipc-server and Paste Image , but I still want to try create the wheel, I wrote Nodejs based N-API plug-in. Test yourself are three computers can (win, mac, ubuntu), if you use there are any problems, you can use
Paste Image, but also to the question I say something, I can try to solve

New Category

Only add here can not be deleted, do not see the blog garden out there to provide the interface to delete. At the same time this interface seems there is a bug. After that I created a test classification after I removed this classification on the site, there is no way to re-establish a classification of known test. Unless you build on the site.

end

The last time it took me to write a few nights, this time to rewrite the entire source, from about October 10 to start around 8:00 pm to 12:00 every day, plus Saturday and Sunday. Feeling too tiring. But there are people who want to look at with the feeling is still possible. I am also more vegetables, if you have any problems using the plug-in, or raised the issue, I can not spare the time to deal with, please do not spray me, thank you.

Because I am limited, and time is limited, if there is something wrong, or plug-ins have questions, please bear with me. Have any good suggestions are also welcome.

Guess you like

Origin www.cnblogs.com/w4ctech/p/11778012.html