-
Notifications
You must be signed in to change notification settings - Fork 10
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
Select OTP slots by name #83
Comments
I do see why remembering slot numbers would be cumbersome. But truth be told, I haven't used the So my tendency would be to get rid of the means for addressing slots by number altogether (although off hand I can't say whether that is possible; there may be some bit that I am missing) and only work with names (well, perhaps add a way to disambiguate in case a name is ambiguous). @robinkrahl do you have an opinion on this request by any chance? |
We can only query the name for one slot at a time. So if we would remove access by number, we would have to execute n + 1 commands instead of only one command to retrieve an OTP code (where n is the number of used OTP slots). Therefore I don’t want to change the behaviour of the As discussed in #50, I’d prefer an extension, let’s call it |
Ah, thanks for refreshing my memory here, Robin. :-) I agree with your inclination of making this an extension. Yet another reason to finally prioritize this work... |
As the v0.4.0 release includes support for extensions (thanks!), we should be able to implement this feature. There is a prototype on the |
Feel free to give it a go, Robin. It was your original proposal. It's working great for me, but it requires the killing of |
I think the first version should be minimal and include neither the scdaemon hack nor the clipboard access. (We already have the scdaemon problem with the I’ll personally use the extension with a wrapper script that opens dmenu, like passmenu. This wrapper script will probably contain the scdaemon hack and the clipboard handling. We could add this script to the repository too. Anyway, I’ll continue to work on the draft and open a PR once it’s ready. |
I realized that we have the same problem with PWS, so I’d suggest to have a |
Sounds good! |
#146 has been merged (thank you!) so we can close this issue, right? |
Yep. |
Hi!
Please add functionality to select OTP slots by name, e.g. if I have many slots it is more convenient to call
nitrocli otp get github
than
nitrocli otp get $(nitrocli otp status | awk '$3 ~ /github/ { print $2 }')
or remembering in what slot github's OTP lives.
Of course it may cause problems if several slots have the same name (report an error than or get all of them) or if a slot name is a number within valid slot number range (for such cases a suboption indicating whether slot name or slot number was requested may be added).
The text was updated successfully, but these errors were encountered: