mirror of
https://github.com/SqrtMinusOne/password-store-completion.git
synced 2025-12-10 18:03:03 +03:00
feat: add message at sequence end
This commit is contained in:
parent
f6712d9732
commit
77a8943fcf
1 changed files with 11 additions and 1 deletions
|
|
@ -105,6 +105,13 @@ Values are lists of symbols that determine action. Take a look at
|
||||||
(const "Return")
|
(const "Return")
|
||||||
(string :tag "Other key")))))))
|
(string :tag "Other key")))))))
|
||||||
|
|
||||||
|
(defcustom password-store-ivy-end-message "Finished typing"
|
||||||
|
"A message to show after typing is finished."
|
||||||
|
:type '(choice
|
||||||
|
(const :tag "No message" nil)
|
||||||
|
(string :tag "Message"))
|
||||||
|
:group 'ivy-pass)
|
||||||
|
|
||||||
(defun password-store-ivy--async-command (command callback)
|
(defun password-store-ivy--async-command (command callback)
|
||||||
"Run COMMAND in shell asyncronously.
|
"Run COMMAND in shell asyncronously.
|
||||||
|
|
||||||
|
|
@ -123,7 +130,10 @@ Call CALLBACK when the command in finished."
|
||||||
|
|
||||||
Call CALLBACK when the last command is executed."
|
Call CALLBACK when the last command is executed."
|
||||||
(if (seq-empty-p commands)
|
(if (seq-empty-p commands)
|
||||||
(when callback (funcall callback))
|
(progn
|
||||||
|
(when callback (funcall callback))
|
||||||
|
(when password-store-ivy-end-message
|
||||||
|
(message password-store-ivy-end-message)))
|
||||||
(password-store-ivy--async-command
|
(password-store-ivy--async-command
|
||||||
(car commands)
|
(car commands)
|
||||||
(lambda ()
|
(lambda ()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue