Skip to content

A couple of my PopClip extensions and a simple command line tool for creating PopClip extensions.

License

Notifications You must be signed in to change notification settings

dofy/PopClip-Extensions

Repository files navigation

My PopClip Extensions

build.sh Usage

Create / Build / Remove the PopClip extension

Usage:
  ./build.sh <EXT_NAME>
  ./build.sh <OPTIONS> <EXT_NAME>
  ./build.sh -h

Options:
  -p  Create extension from `plist` template.
  -y  Create extension from `yaml` template.
  -j  Create extension from `json` template.
  -m  Create extension from `module` template (`Yaml` & `TypeScript`).
  -J  Create snippet extension from `JavaScript` snippet template.
  -T  Create snippet extension from `TypeScript` snippet template.
  -Y  Create snippet extension from `yaml` snippet template.
  -i  Build and install.
  -r  Remove extension and source!!!
  -h  Show help.

Extensions Index

  • Open GitHub Repo

    You can open this GitHub Repo in your browser when you check text in the format AUTHOR/REPO. If AUTHOR is not the GitHub USERNAME you set up, a new button will be added to open USERNAME/REPO.

  • PinYin

    Get PinYin or ZhuYin of Chinese characters with the selected text.

  • TextRepeater

    Repeat TEXT by N times if the content format is TEXT*N or TEXT.N.

  • RGB_HEX

    Convert RGB to Hex or Hex to RGB with the selected text like #FFFFFF or 255,255,255.

  • Variable Name Convert

    Convert variable name to CamelCase or snake_case.

  • Markdown List

    Convert multi-line text to markdown list format.

  • Format JSON

    Format JSON with indent.

  • Comment Switcher

    Comment / uncomment a bunch of lines of code.

  • Mosaic Text

    Mosaic text with custom characters which can be changed in the extension settings, you can use it to hide sensitive information. (The selected text will be copied to the clipboard first.)

  • Multi-line to Array

    Convert multi-line text to javascript array format.

  • Search in NPM

    Search in npmjs.com

  • Generate ray.so Image

    Send selected text to ray.so to get a beautiful image of your code.

  • DeepL Translator

    Translate selected text via DeepL App or Website.

    The Second Language option is only available in the Web Mode.

    • Clicking the Translate icon will translate the selected text from the Second Language into the System Language
    • Clicking the icon while holding the Option key will translate the selected text from the System Language into the Second Language
  • Generate Password

    Generate password with custom length and characters.

References