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)
This commit is contained in:
parent
a56a03c454
commit
63c4336a3c
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user