Giter Site home page Giter Site logo

zsh-romaji-complete's Introduction

zsh-romaji-complete

zshのタブ補完でローマ字による日本語ファイル名補完ができるようにします。

例: niho<Tab>日本で始まるファイル名が補完されます。

セットアップ

1. kakasiをインストール

$ git clone --depth 1 [email protected]:loretoparisi/kakasi.git
$ cd kakasi
$ ./configure && make && make install

2. zsh-romaji-completeをインストール

a) Plugin manager

zinit
zinit light aoyama-val/zsh-romaji-complete
oh-my-zsh
git clone https://github.com/aoyama-val/zsh-romaji-complete.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-romaji-complete

.zshrcに以下を追加

plugins=([既存のplugin...] zsh-romaji-complete)

b) Manual

お好きな場所にクローンします:

$ git clone [email protected]:aoyama-val/zsh-romaji-complete.git

~/.zshrcに下記を追加:

bindkey "^I" menu-expand-or-complete
fpath+=({クローンしたディレクトリ} $fpath)
. {クローンしたディレクトリ}/zsh-romaji-complete.plugin.zsh

zshのデフォルトでは ^Iexpand-or-completeですが、それだと候補が複数ある場合に何も補完されません。

zsh-romaji-complete's People

Contributors

aoyama-val avatar rqdaa avatar

Stargazers

 avatar Ama / Yuki Okugawa avatar Lim Daehee avatar Mizu avatar Gakuto Furuya avatar h-kys avatar  avatar M260 avatar Kyure_A avatar RinChanNOW avatar  avatar Takehiro Ogura avatar aose avatar あ馬場 avatar Kenta Kamijo avatar uthree avatar sheepla avatar arrow2nd avatar  avatar

Watchers

 avatar

Forkers

rqdaa

zsh-romaji-complete's Issues

zinitでインストールすると動作しない

.local/share/zinit/completions/_path_files:.:6: too many open files: /Users/val00362/.local/share/zinit/completions/_path_files
ls: stdout: Bad file descriptor
grep: (standard input): Bad file descriptor
awk: i/o error occurred on /dev/stdin
 source line number 1

$fpathに二重に登録されてしまうのが原因っぽい。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.