Skip to content
Find file by first Pinyin characters of Chinese Hanzi. 输入拼音首字母定位对应的中文目录/文件
Emacs Lisp Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.org
find-by-pinyin-dired.el
pkg.sh

README.org

find-by-pinyin-dired v0.0.3

Find file by first Pinyin characters of Chinese Hanzi

输入拼音首字母,即可在 Dired 中定位到对应的中文文件.

Emacs不会比total commander差.

Install

Download and place find-by-pinyin-dired.el somewhere (say ~/.emacs/lisp), add below code into your .emacs:

(add-to-list 'load-path "~/.emacs.d/lisp/")
(require 'find-by-pinyin-dired)

Usage

M-x find-by-pinyin-dired find files in the directory which users provide interactively.

M-x find-by-pinyin-in-project-dired find files in the project root directory.

The root directory is in find-by-pinyin-project-root.

If find-by-pinyin-project-root is nil (default value) and find-file-in-project is installed, project root directory is detected automatically.

If find-by-pinyin-no-punc-p is t, English punctuation is converted to Chinese punctuation.

If find-by-pinyin-traditional-p is t, traditional Chinese characters are used instead of simplified Chinese characters.

If find-by-pinyin-only-chinese-p is t: the resulting regular expression doesn’t contain the English letter.

Bug Report

Check https://github.com/redguardtoo/find-by-pinyin-dired.

License

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

You can’t perform that action at this time.