Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Execute command on select #15

Open
chipsenkbeil opened this issue May 28, 2019 · 2 comments
Open

Execute command on select #15

chipsenkbeil opened this issue May 28, 2019 · 2 comments

Comments

@chipsenkbeil
Copy link
Owner

A feature I'd like is to be able to execute a command upon selecting from choose. The reason is that I currently leverage the existing choose program to pipe in choices from pass that I can select to copy to my clipboard.

The problem is that there is a bit of a delay from when I select from choose and when pass is able to copy to my clipboard. If I can execute directly from choose, I can provide a spinner or some indicator that it is still processing, rather than accidentally sending the wrong clipboard contents to some other application because I moved too quickly.

@chrisbgp
Copy link

chrisbgp commented Feb 7, 2022

How do you use this with pass? It does not seem to copy my passwords to the clipboard if I use it like this:

pass -c |choose

Is there any way to get this working with choose?

@chrisbgp
Copy link

chrisbgp commented Feb 7, 2022

For anyone wondering, this seems to work:

pass -c $(pass| cut -d" " -f2 |choose)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants