-
-
Notifications
You must be signed in to change notification settings - Fork 501
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
[FR] gopass move to rename/move directories #892
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@dominikschulz apparently things went a slightly different direction at some point. Today I did a |
Confirmed to still be the case as described in the latest comment. |
So I've encountered the problem before, that after creating a secret This is not ideal, but also not a big deal, I think I've identified the code responsible and the necessary change, however I've not written in Go before. gopass/internal/store/root/move.go Lines 41 to 47 in a247d97
// L45 becomes
srcIsDir := r.IsDir(ctx, from) && !r.Exists(ctx, from) // move the dir iff no secret exists at `from`
// Insert this at L47
if r.IsDir(ctx, from) && r.Exists(ctx, from) {
// Output some warning about the ambiguity and state that gopass is moving the secret
// Maybe ask for confirmation
// (Do _not_ ask if they instead want to move the dir, in my opinion)
} gopass/internal/store/root/move.go Lines 48 to 54 in a247d97
|
Thanks for the investigation, you almost had it, there was another problem slightly further down in But hopefully #2718 should now fix this (very) longstanding issue 😳 😅 |
Fixes #892 Signed-off-by: Yolan Romailler <[email protected]>
thanks! |
Summary
Currently
gopass move
only supports moving password entries around. Is it possible to also implement moving whole subpaths/directories around? For git backend this is as simple asgit mv && git commit && git push
, which is my workaround for now.The text was updated successfully, but these errors were encountered: