mirror of
https://github.com/SqrtMinusOne/password-store-completion.git
synced 2025-12-10 18:03:03 +03:00
fix: shell escape
This commit is contained in:
parent
e6d8b3f61e
commit
49ae109e7d
1 changed files with 4 additions and 3 deletions
|
|
@ -105,11 +105,12 @@ Call CALLBACK when the last command is executed."
|
||||||
(defun ivy-pass--get-type-command (str)
|
(defun ivy-pass--get-type-command (str)
|
||||||
"Return a command to type STR."
|
"Return a command to type STR."
|
||||||
(concat
|
(concat
|
||||||
"printf \""
|
"printf "
|
||||||
(shell-quote-argument str)
|
(shell-quote-argument str)
|
||||||
"\" | xdotool type --clearmodifiers --file - --delay "
|
"| xdotool type --clearmodifiers --file - --delay "
|
||||||
(number-to-string ivy-pass-delay)))
|
(number-to-string ivy-pass-delay)))
|
||||||
|
|
||||||
|
|
||||||
(defun ivy-pass--get-wait-command (&optional miliseconds)
|
(defun ivy-pass--get-wait-command (&optional miliseconds)
|
||||||
"Return a command to sleep for `ivy-pass-initial-wait'."
|
"Return a command to sleep for `ivy-pass-initial-wait'."
|
||||||
(format "sleep %f" (/ (float (or miliseconds ivy-pass-initial-wait)) 1000)))
|
(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
|
(ivy-exit-with-action
|
||||||
(lambda (entry-name)
|
(lambda (entry-name)
|
||||||
(ivy-pass--async-commands
|
(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)
|
(defun ,(intern (format "ivy-pass--type-%s-action" sequence-name)) (entry-name)
|
||||||
(ivy-pass--async-commands
|
(ivy-pass--async-commands
|
||||||
(ivy-pass--get-commands
|
(ivy-pass--get-commands
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue