npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

coc-mozc

v0.0.7

Published

mozc input method source for coc.nvim

Downloads

7

Readme

release test

coc-mozc

NeoVim の日本語入力を Mozc で出来るようにするプラグインです。 COC のサジェストのリストに表示されるようになります。

Mozc input method source for coc.nvim

image image

Why

In terminal, it is hard to input Japanese with OS standard IME. With coc-mozc, you can input Japanese just like code suggestion.

Install

Prerequisite

mozc_emacs_helper is required!

For ubuntu:

sudo apt-get install emacs-mozc

Install coc-mozc via CocInstall

:CocInstall coc-mozc

Example settings

" Selects the first prediction by pressing Enter, meaning insert ひらがな
autocmd User MozcEnabled execute('inoremap <silent><expr> <cr> pumvisible() ? coc#_select_confirm() : "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"')
autocmd User MozcDisabled execute('inoremap <cr> <cr>')

" C-j toggles mozc mode
inoremap <expr> <C-j> execute(':CocCommand mozc.toggle')

" Disable mozc when insert leave
au InsertLeave * execute(':CocCommand mozc.disable')

Known Issues

  • 部分確定できない
    • カーソル移動をトリガーとして、部分的に確定したい
  • c-h で戻った時に、今度は部分的に確定されてしまう
  • ユーザーが下記のキーに何かしらのショートカットを設定している場合、切り替えの時点で奪ってしまう
    • CR
    • SPACE
  • SPACE で候補選択するようになっているので、ローマ字として入力を確定させる方法が欲しい
    • 例えば、 Vim は と打とうとするとしんどい
    • F10 とかを実装すれば大丈夫そう
  • Fcitx などの挙動に近づけるために、 SPACE で一個目の予測を選択、 CR でひらがなとして入力、としているが、やや分かりにくい
    • 特に英語と日本語の混じった文章を書く時に辛い
    • 入力中にひらがなとして表示されている状態が望ましい
    • SPACE や C-N は、最初の一回だけ 2 つ下に移動して欲しい
    • 大文字入力した時に候補が出なくて改行してしまうミスも引き起こす

上記の問題はありつつ、まあ一旦動くから良しとしている。コーディング中にさくっと日本語入れたい時の補助だったら問題なさそう ← だったら最初から(ry

Inspired By

  • https://github.com/tonyfettes/coc-rime/blob/master/src/index.ts
  • https://github.com/yasuyuky/SublimeMozcInput

License

MIT


This extension is built with create-coc-extension