fix: shell escape

This commit is contained in:
Pavel Korytov 2022-02-10 23:06:34 +03:00
parent e6d8b3f61e
commit 49ae109e7d

View file

@ -105,11 +105,12 @@ Call CALLBACK when the last command is executed."
(defun ivy-pass--get-type-command (str)
"Return a command to type STR."
(concat
"printf \""
"printf "
(shell-quote-argument str)
"\" | xdotool type --clearmodifiers --file - --delay "
"| xdotool type --clearmodifiers --file - --delay "
(number-to-string ivy-pass-delay)))
(defun ivy-pass--get-wait-command (&optional miliseconds)
"Return a command to sleep for `ivy-pass-initial-wait'."
(format "sleep %f" (/ (float (or miliseconds ivy-pass-initial-wait)) 1000)))
@ -159,7 +160,7 @@ SEQUENCE is a list of the following elements:
(ivy-exit-with-action
(lambda (entry-name)
(ivy-pass--async-commands
(ivy-pass--get-commands entry-name sequence)))))
(ivy-pass--get-commands entry-name ,sequence)))))
(defun ,(intern (format "ivy-pass--type-%s-action" sequence-name)) (entry-name)
(ivy-pass--async-commands
(ivy-pass--get-commands