tmux-rime is a tmux plugin that let you type CJK chars within terminal.
You may refer to the introduction slide: slide/presentation.pdf
Install required packages:
pkg install git gcc gmake bash tmux zh-librime zh-fcitx-rimeYou may need to create a symobol link called python to link to python3.X
mkdir ~/bin
ln -s /usr/local/bin/python3.8 ~/bin/pythonCreate a empty directory /usr/share/rime-data (I know it’s a bad practice in FreeBSD), and put all your rime configs into /.config/tmux_rime/rime/.
You may also copy the default configs (under /usr/local/share/rime-data):
sudo touch /usr/share/rime-data mkdir -p ~/.config/tmux_rime cp -r /usr/local/share/rime-data ~/.config/tmux_rime/rime
Clone the repo and build it:
mkdir -p ~/.tmux/plugins/
git clone https://github.com/Cycatz/tmux-rime.git ~/.tmux/plugins/tmux-rime
cd ~/.tmux/plugins/tmux-rime
./build.shAdd the following line to your tmux config, e.g., ~/.tmux.conf:
run-shell '~/.tmux/plugins/tmux-rime/tmux_rime.tmux'Prefix + tto enable the rime modeEnterto commit raw charactersEscto exit the rime mode
Preedit chars deletingRaw input committing- Candidate selection
- Schema selection
- Custom IME status bar
- Custom plugin options
- Use tmux user options (prefixed with
@) to define variables
- Use tmux user options (prefixed with
- Custom key mappings
- Define what keys need to be bound in tmux
- Write tests
- Write documentation
- Set up plugin installation process


