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-rime
You may need to create a symobol link called python
to link to python3.X
mkdir ~/bin
ln -s /usr/local/bin/python3.8 ~/bin/python
Create 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.sh
Add the following line to your tmux config, e.g., ~/.tmux.conf
:
run-shell '~/.tmux/plugins/tmux-rime/tmux_rime.tmux'
Prefix t
to enable the rime modeEnter
to commit raw charactersEsc
to 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