Rime for tmux.
I use rime.nvim to input CJKV characters in neovim. However, for command mode and search mode, it cannot work. So I create it.
See shell.nix.
xmake
# tmux 3.3 starts to support display-popup
if 'v=$(tmux -V) v=${v#*.} v=${v%[[:lower:]]} test $v -gt 2' {
set -g popup-border-lines rounded
bind -Tprefix C-^ display-popup -Tㄓ -h4 -w122 -xR -yP tmux-rime
}
Or:
tmux split-window -l2 tmux-rime -- -t $TMUX_PANE
See
tmux-rime --help
to modify tmux-rime
to "tmux-rime [...]"
.
Press Ctrl + C to exit.
paru -S tmux-rime
nix-env -iA nur.repos.rimeinn.tmux-rime
add-apt-repository ppa:freedwu/rime
apt update
apt install tmux-rime
eselect repository enable guru
emaint sync -rguru
emerge -av app-misc/tmux-rime
- Support more special keys: Up, Del, F1, ...
- Use C library function to do the work of
tmux send-keys
to save the fork cost. Some experiment to wrap tmux to a library. - Use a daemon to avoid fork a new process every time