Since some time I try to use the repl-functions of Kakoune. I am working with dwm and with st as terminal-emulator and would like to use the Repl of R. Though :repl works quite well (at least if I am invoking a R-Repl) I run into problems if I try to send texts to said repl via :send-text. I select some text inside the kak-buffer, run :send-text and nothing appears in my repl-window.
Examining the debug-buffer I find the following error:
shell stderr: <<< There are no windows in the stack Invalid window '%1' Usage: windowactivate [options] [window=%1] --sync - only exit once the window is active (is visible + active) If no window is given, %1 is used. See WINDOW STACK in xdotool(1) >>>
I examined a little bit the x11.kak and tried to model the process in the shell. So I invoked the following couple of commands:
printf %s\\n "3+4" | xsel -i set wid=$(xdotool getactivewindow) xdotool search --name kak_repl_window windowactivate xdotool key --clearmodifiers "Shift+Insert"
I see that here, the string piped in xsel is not pasted in the aforementioned window but in the primary one. So I guess that here the error lies… he does not seem to activate the window (though he seems to detect it correctly). Does someone know how to fix that?
I am working on a Pinebook pro in Manjaro Linux and use Kakoune v2020.01.16.
Thanks in advance!