Kakoune external REPL which uses tmux for comms
I like the fact that the inbuild X11 REPL creates external windows.
What I do not like is the fact that when I send text to it, it uses xdotool
to switch windows / focus.
I like the fact that the tmux REPL uses sockets for communication as it's not switching windows / focus.
This Kakoune plugin blends these two ideas and provides a REPL that is launched in an external window but uses a TMUX socket for communication... I think this is the best of both worlds.
xmux
from xmux somewhere in your path and make sure it's executable.plug "forbesmyester/xmux.kak"
in your $HOME/.config/kak/kakrc.:plug-install
within KakouneProvides just one commands xmux-repl
which spawn a REPL. When you use this command it will attach more commands such as:
xmux-chars-bob
would be created by a :xmux-repl bob
and it will send any characters in the selection or the characters in the first argument.xmux-lines-bob
like xmux-chars-bob
, but it will ensure a new line is sent afterwards.These notes should really be in xmux, but xmux will run "$HOME/.xmux.conf" when creating (tmux -f $HOME/.xmux.conf) if it exists. After that it will ask tmux to source "$HOME/.xmux.post".
In my "$HOME/.xmux.conf" file I have one line source ~/.tmux.conf
.
In my "$HOME/.xmux.post" file I also have one line, which is set -g status off
.