Avoid interpretting eventual output in send-text implementations

This commit is contained in:
Maxime Coste 2016-01-28 19:30:49 +00:00
parent d3bbab313b
commit 5388a538ef
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ def tmux-repl-window -params 0..1 -command-completion -docstring "Create a new w
} }
def tmux-send-text -docstring "Send selected text to the repl pane in tmux" %{ def tmux-send-text -docstring "Send selected text to the repl pane in tmux" %{
%sh{ nop %sh{
tmux set-buffer -b kak_selection "${kak_selection}" tmux set-buffer -b kak_selection "${kak_selection}"
kak_orig_window=$(tmux display-message -p '#I') kak_orig_window=$(tmux display-message -p '#I')
kak_orig_pane=$(tmux display-message -p '#P') kak_orig_pane=$(tmux display-message -p '#P')

View File

@ -12,7 +12,7 @@ def -docstring 'create a new window for repl interaction' \
}} }}
def x11-send-text -docstring "send selected text to the repl window" %{ def x11-send-text -docstring "send selected text to the repl window" %{
%sh{ nop %sh{
echo "${kak_selection}" | xsel -i echo "${kak_selection}" | xsel -i
wid=$(xdotool getactivewindow) wid=$(xdotool getactivewindow)
xdotool search --name kak_repl_window windowactivate xdotool search --name kak_repl_window windowactivate