From 63c4336a3cc4a43713c5209cfe16396216f10337 Mon Sep 17 00:00:00 2001 From: Philman <36580283+philgee1981@users.noreply.github.com> Date: Fri, 3 Jul 2020 06:46:41 +0200 Subject: [PATCH] finetuned the :send-text command See discussions on [github](https://github.com/philgee1981/kakoune/pull/1) and on [the kakoune message board](https://discuss.kakoune.com/t/trying-to-run-kakoune-repl-with-st-and-dwm/1122/3) --- rc/windowing/repl/x11.kak | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/rc/windowing/repl/x11.kak b/rc/windowing/repl/x11.kak index 0baef965..cd0214e4 100644 --- a/rc/windowing/repl/x11.kak +++ b/rc/windowing/repl/x11.kak @@ -25,10 +25,7 @@ define-command -docstring %{ define-command x11-send-text -docstring "send the selected text to the repl window" %{ nop %sh{ printf %s\\n "${kak_selection}" | xsel -i - wid=$(xdotool getactivewindow) - xdotool search --name kak_repl_window windowactivate - xdotool key --clearmodifiers "Shift+Insert" - xdotool windowactivate $wid + xdotool search --name kak_repl_window key --clearmodifiers Shift+Insert } }