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

Add path based username detection #139

Open
G3sit opened this issue Feb 23, 2025 · 4 comments
Open

Add path based username detection #139

G3sit opened this issue Feb 23, 2025 · 4 comments

Comments

@G3sit
Copy link

G3sit commented Feb 23, 2025

Motivation

I am using a file naming scheme like: <Category>/<Website>/<Username>/password.gpg. I am using it, because of Android Password Store. Thus, I want to extract the username from the file path.

Proposal

  1. The easiest way to add this, would be to add a regex option for the file path. This would make it possible to extract the username from every place I can imagine.
  2. It would also be possible to add an option to choose which parent folder to use (so first parent folder, second parent folder, ...)

To be honest, the second option would be nicer and sufficient for most users, but the first is more versatile.

@G3sit
Copy link
Author

G3sit commented Feb 23, 2025

I would be interested to implement this feature.

@G3sit G3sit changed the title Add Path Based Username detection Add path based username detection Feb 23, 2025
@willpower232
Copy link

I didn't know the android one could work like that, I only put usernames in the password files because of pass-winmenu 😅

off-topic did you see how the android one has apparently been abandoned? I couldn't install it on my newer phone

@G3sit
Copy link
Author

G3sit commented Feb 24, 2025

Yeah, I only realized it was abandoned, while writing this issue.

I currently keep the username in the file, and it's path at the same time, which is a little cumbersome.

My Linux setup also uses the file path, so it would be nice to have this feature, even if I switch to another android app.

@geluk
Copy link
Owner

geluk commented Mar 2, 2025

Hi @G3sit, your suggestion sounds reasonable to me. Feel free to submit a pull request, and I'll review it!

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

No branches or pull requests

3 participants