Skip to content

petronny/pinyin-completion

This branch is 39 commits ahead of adaptee/pinyin-completion:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

bf3d883 · Nov 27, 2024

History

69 Commits
Nov 27, 2024
Nov 27, 2024
Nov 27, 2024
Nov 27, 2024
Oct 21, 2023
Nov 27, 2024
Nov 27, 2024
Oct 21, 2023
Oct 21, 2023
Oct 21, 2023
Nov 27, 2024
Nov 27, 2024
Nov 27, 2024
Nov 27, 2024
Nov 27, 2024
Nov 27, 2024
Nov 27, 2024
Oct 21, 2023
Nov 27, 2024

Repository files navigation

pinyin-completion

pre-commit.ci status github/workflow

github/downloads github/downloads/latest github/issues github/issues-closed github/issues-pr github/issues-pr-closed github/discussions github/milestones github/forks github/stars github/watchers github/contributors github/commit-activity github/last-commit github/release-date

github/license github/languages github/languages/top github/directory-file-count github/code-size github/repo-size github/v

Complete path by acronym of pinyin initials.

用拼音补全命令行中的中文名称和路径。

% ls
自然语言处理  '自然语言处理 课程结课作业.md'
% ls zr<TAB>
expansions
自然语言处理                   自然语言处理\ 课程结课作业.md
% cd zr<TAB>
% cd 自然语言处理/

Dependencies

Or:

Install

This plugin respects zsh plugin standard, so if you use any plugin manager and follow the instructions of your plugin manager, it can be installed correctly. Otherwise:

. /the/path/of/this/plugin/pinyin-completion.plugin.zsh

Configure

If you cannot distinguish n and l, try:

declare -A FUZZY=(
    [n]=l
)

Then always use l.

By default, this plugin will change Chinese punctuation to English punctuation. You can add more punctuation maps:

declare -A FUZZY=(
    […]=...
)

Then use ... to search the file whose name contains .

About

complete path name based upon the pinyin acronym of Chinese characters

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 88.2%
  • M4 6.7%
  • Shell 3.6%
  • Makefile 0.7%
  • Awk 0.6%
  • C++ 0.2%