Skip to content

7kfpun/atom-pangu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dependency Status

Pangu

Pangu is a plugin for adding space between Chinese/Japanese/Korean and English characters to file in Atom.io editor.

The algorithm is from pangu.js

Installing

  1. Go to Atom -> Preferences...
  2. Then select the Install tab
  3. Enter pangu in the search box

Install using apm

$ apm install pangu

Or using Git

Alternatively, if you are a git user, you can install the package and keep up to date by cloning the repo directly into your ~/.atom/packages directory.

$ git clone https://github.com/7kfpun/atom-pangu.git ~/.atom/packages/pangu
$ cd ~/.atom/packages/pangu
$ npm install

Or download manually

  1. Download the files using the GitHub .zip download option and unzip them
  2. Move the files inside the folder to ~/.atom/packages/pangu
  3. Install packages: npm install

Usage

Plugin settings page

To access the Pangu Settings:

  1. Go to Atom -> Preferences... or cmd-,
  2. In the Filter Packages type pangu
# Auto spacing on save
Enabled | default: `false` (true, false)
# Auto spacing ignored names
ignoredNames | default: ``
# Skip on lines without Chinese, Japanese and Korean
skipNoCKJLine | default: false
# Ignoring text with the matched pattern, e.g. \\*\\*[^\\*\\*]+\\*\\*, <pre>(.*?)</pre>
ignoredPattern | default: ``

Commands

The following commands are available and are keyboard shortcuts.

  • pangu:spacing - Spacing - ctrl-alt-p ctrl-alt-g

License

Released under the MIT License.

About

Adding space between Chinese/Japanese/Korean and English characters to file in Atom.io editor.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published