mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-29 14:44:56 +03:00
Merge remote-tracking branch 'krobelus/fail-on-missing-tools'
This commit is contained in:
commit
616f6bbe9b
@ -23,9 +23,11 @@ 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
|
||||
xdotool search --name kak_repl_window key --clearmodifiers Shift+Insert
|
||||
evaluate-commands %sh{
|
||||
printf %s\\n "${kak_selection}" | xsel -i ||
|
||||
echo 'fail x11-send-text: failed to run xsel, see *debug* buffer for details' &&
|
||||
xdotool search --name kak_repl_window key --clearmodifiers Shift+Insert ||
|
||||
echo 'fail x11-send-text: failed to run xdotool, see *debug* buffer for details'
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -57,7 +57,8 @@ If no client is passed, then the current client is used' \
|
||||
if [ $# -eq 1 ]; then
|
||||
printf "evaluate-commands -client '%s' focus" "$1"
|
||||
else
|
||||
xdotool windowactivate $kak_client_env_WINDOWID > /dev/null
|
||||
xdotool windowactivate $kak_client_env_WINDOWID > /dev/null ||
|
||||
echo 'fail failed to run x11-focus, see *debug* buffer for details'
|
||||
fi
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user