Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Specification

Takayuki Kamiyama edited this page Oct 6, 2022 · 60 revisions

始めに

※ 日本語 (正式名:まっすぐ、開発名:ゴースト)

totolotとは違い、go_straightは自分以外の変更を受け付けません。

issuesはありません、PRは拒否します。

※ 英語

Unlike totolot, go_straight does not accept changes other than its own; it rejects all PR.

※ deopleteでRuby辞書補完の最小構成です

※ 日本語
すべては自分の開発スタイルのためです。

※ 英語
It's all about my development style.

バージョン推移

1x.2x.3x.4x.5x

1. 正式番号
2. 機能追加や正式手前の番号
3. Fix対応や高速化などの修正を含んだ番号 
4. 最適化や細かい修正などの番号
5. 動作確認やエラー対応番号

→ 最新は更新した日付です。

仕様

・ Python3で機能追加できそうなことを試す
・ 特微量エンジニアリングを意識する
・ Rubyを書きやすく変更する → requireできるファイルパスを辞書に追加しました。
・ sortとitemgetterを使用することで高速化を図りました。
・ 読み込む辞書のファイルはCSV形式に限定しました。(エクセルなど表計算ソフトで管理するためです。)

※ pandasとdaskで並列分散処理を取り込み → 分散数を1からコア数に変更しました。
※ ruby-dictionary3の依存をなくした。後日、手動でPATHを設定できるように変更しました。

after python install example

C:\Python3\python.exe -m pip install --upgrade pip

plugin install

[[plugins]]
repo = 'takkii/go_straight'
build = 'ruby install.rb'
repo = 'takkii/config'

2度目から書き直す

[[plugins]]
repo = 'takkii/go_straight'

プラグインマネージャーに含めずホームディレクトリでもよい

repo = 'takkii/config'

vim-plug install

Plug 'takkii/go_straight', { 'do': 'ruby ./install.rb' }

※ plugin installにdaskを含めました。すでにプラグインが入っていれば要りません。

自動的に探す、ロードパス

~/.vim/.cache/dein/
~/.vim
~/.cache/dein
~/.config/nvim/.cache/dein/
~/.config/nvim/

公式を参考にdeinを設置してください。

作業用ディレクトリ変更

cd $HOME
git clone https://github.com/takkii/go_straight.git

.vimrc
set runtimepath^=~/go_straight

辞書探し、(GitHub_version: v1.3.3 ~)

カスタム辞書(例:ruby-dictionary3)へPATHをつなぐことができるようになりました。

初期設定

# デフォルトの辞書 ($HOME/config)
cd $HOME
git clone [email protected]:takkii/go_straight.git
cd go_straight
ruby install.rb

辞書フォルダを消す

# デフォルトの辞書 ($HOME/config)
cd $HOME
git clone [email protected]:takkii/go_straight.git
cd go_straight
ruby uninstall.rb

カスタム設定

# 設定ファイルの場所は固定($HOME/config)
cd $HOME
curl https://raw.githubusercontent.com/takkii/go_straight/main/install.rb > install.rb
ruby install.rb
rm install.rb

既存configフォルダを消す、installer.rbで最初に実行される

# アンインストーラ (installer.rb / 削除処理実行)
cd $HOME
curl https://raw.githubusercontent.com/takkii/go_straight/main/uninstall.rb > uninstall.rb
ruby uninstall.rb
rm uninstall.rb

※ ($HOME/config/load.yml) コメント内、設定例を追加したので各自カスタマイズできる。

pyenv

ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?

CFLAGS="-I$(brew --prefix openssl)/include" LDFLAGS="-L$(brew --prefix openssl)/lib" pyenv install -v 3.10.7

※ これでインストールできる。バージョンを変えてもよい。

takayuki kamiyama is listed as a Vim sponsor

動作動画 (deoplete + deoplete-tabnine + go_straight)

テキストエディタ

vim sponsor id: valture

(I rewrote the vulture)

GitHub id: takkii

(Displayed one character at a time from takayuki kamiyama)

Refactored !

Clone this wiki locally