JSON format extension for "Go" popclip

Source: Internet
Author: User

JSON format extension for Http://liuyunclouder.github.io/2016/09/29/JSONizer:Popclip

As a Mac party, it is a sin to not take advantage of the Mac's weapon of divine soldiers. Alfred, Dash, Ulysses, Snippetslib, Mindnode and other famous efficiency artifact naturally do not mention, Popclip is a daily use on Times good helper.

Popclip?

Simply put, Popclip is a tool for quick processing of selected content, such as directly searching for selected content, generating QR codes from selected content, calculating the number of words selected, and so on, as well as customizing extensions to achieve the functionality you want.

This is my popclip extension:

If you have not installed the Popclip, stop immediately, to install one, and then continue to look down;

If you don't know what popclip is, stop right now and look at this review to see what's going on.

Jsonizer's origins

Usually need to a piece of character format, at that time each need to copy, open jsbeautifier.org, paste, click the Format button, hit the network bad situation also have to wait half a day, if there is no network, more headaches.

Later instead of sublime plug-in Codeformatter, but also can be more convenient to quickly format, but there is a point to make me unhappy: Codeformatter requires that the content needs to be formatted in a file with the suffix. JSON to be recognized and formatted.

Because the use of popclip has been good for some time, very enjoy the convenience it provides, so I would like to install a JSON format extension, search, found that there is no, so they began to write an idea.

Do it

The JSON formatted LIB is already very mature, just on the jsbeautifier.org to see that there is a lib that provides python.

The expansion of Popclip without Alfred's workflow can provide a lot of functionality and complexity, and correspondingly easy to get started. Referring to this tutorial on tuts, the approximate framework was fixed in a matter of minutes.

The next is simple, to rely on a few lib dependencies well, the basic file layout is as follows:

Note: Editorconfig, six.py is a dependency of jsbeautifier.

Finally, the test works perfectly:

Download the entrance, hope to help the needs of friends.

Summarize

Currently, you need to copy the content you want to format into the editor before you select it to format. In fact, it can be improved, do not need to copy, directly on the content source, such as the browser, select the characters that need to be formatted and formatted, directly to the formatted content written to the system Clipboard. The follow-up time can be studied.

JSON format extension for "Go" popclip

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.