-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
Setting gpg-tui --select key_id
to a variable doesn't load
#27
Comments
Ah, good catch. It's a simple standard stream issue I reckon. In 916ded7, I set the TUI stream as stderr so the output should not be blocked now. key=$(cargo run -- --select key_id) && echo "Selected: ${key}" Can you try and let me know if it works? |
Yes, the new update does work, awesome! |
Great! I'll ship a new release soon. 🥂
If you don't mind my curiosity, what exactly are you using gpg-tui for? I want to add a shell script example to README.md about the usage of Also what do you think of #19? Does gpg-tui need any additional implementation for it? How did you utilize it? That'd be really awesome if you can give me some information :) |
Well I'm using it on macOS, and I created a fairly long script that involves tagging files, and one of the options involves editing the file if it is Another option that I would like to do is incorporate it with One feature that I think could be added, I mean it would obviously be dependent upon what you'd like this program to ultimately be, but whenever I first downloaded it I thought that there was an option to enter a file or directory within the TUI to have it encrypted. So I do think that that would be kind of neat, if somehow TUI file-managers or some option to browse files within a directory or to pass a path to the program (within the TUI) and have the option to encrypt or sign the file/directory that is entered. This may be leaning more towards turning this into a file-manager if this is incorporated, although I don't necessarily think so. I think there could be some sort of configuration that would allow the user to provide a file manager that would only be used in selecting files to encrypt through Once I finish this part real quick, having incorporated Something simple is function encrypt() { gpg -e -r $(gpg-tui --select key_id) "$@"; } |
If trying to use Edit: removed All of the Go programs do (e.g., The reproduce: fzf --bind 'A:execute(gpg-tui (add any options here) )'
# This one messes up the terminal and it has to be restarted
fzf --bind 'A:execute(gpg-tui < /dev/tty > /dev/tty )' |
Very cool! Don't hesitate to tell me if you need anything about
Got it. It seems like I still have to try out
Yes, that's one of the core features that
Thanks! 2dcd41f
I'm not sure I get your use case here but I tried the commands to reproduce and they both worked when I press |
I think we're good to close this. |
Sorry for the late reply, I'm unsure as to why I'm not getting github email notifications. But awesome to the things you had said replying to my comment. I'm looking forward to the future of this project. I'm learning Rust now, so perhaps I'd be able to make some contributions. Lastly, the |
No problem. Very good to hear!
Alright. I'd be glad if you can share the issue link here (but you don't have to). I want to see "why" as well. |
Wanting to try and use
gpg-tui
in scripts or withneomutt
and when attempting to do something like the following:key=$(gpg-tui --select key_id)
The screen to select never loads. I can do this in either a script or just in the shell and it doesn't work. If I do not set it to a variable it works just fine.
Edit: If I do the same as above and set it to a variable, then I click enter (no screen present to select a key), the program quits stalling. Then when printing the variable it was set to does print out a
key_id
, I was just never able to visually select it.System Information (if useful):
Terminal: iTerm2
The text was updated successfully, but these errors were encountered: