From fde16c60f4ce5d57a0c7d5a0186dcd532a23f0f0 Mon Sep 17 00:00:00 2001 From: Fabian Henneke Date: Wed, 25 Mar 2020 18:13:04 +0100 Subject: Make preferred directory structure for Autofill configurable (#660) Some users keep their password files in a directory structure such as: /example.org/john@doe.org.gpg while others prefer the style: /example.org/john@doe.org/password.gpg This commit adds a setting that allows to switch between the two. All Autofill operations, such as search, match, generate and save, respect this setting. Note: The first style seems to be the most widely used and is therefore kept as the default. The second style is mentioned on the official Pass website at: https://www.passwordstore.org/#organization --- app/src/main/res/layout/encrypt_layout.xml | 4 ++-- app/src/main/res/values/arrays.xml | 8 ++++++++ app/src/main/res/values/strings.xml | 2 ++ app/src/main/res/xml/preference.xml | 7 +++++++ 4 files changed, 19 insertions(+), 2 deletions(-) (limited to 'app/src/main/res') diff --git a/app/src/main/res/layout/encrypt_layout.xml b/app/src/main/res/layout/encrypt_layout.xml index 40ae757f..e4d9464a 100644 --- a/app/src/main/res/layout/encrypt_layout.xml +++ b/app/src/main/res/layout/encrypt_layout.xml @@ -9,13 +9,13 @@ android:padding="@dimen/activity_horizontal_margin" tools:context="com.zeapo.pwdstore.crypto.PgpActivity"> - classic xkpasswd + + /example.org/john@doe.org(.gpg) + /example.org/john@doe.org/password(.gpg) + + + file + directory + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 5df51af5..ba491c87 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -42,6 +42,7 @@ Username copied to clipboard OTP code copied to clipboard Please provide a file name + Please provide a file path You cannot use an empty password or empty extra content @@ -268,6 +269,7 @@ Fill credentials Fill credentials (may require restarting the browser from time to time) No support + Password file organization Autofills password fields in apps. Only works for Android versions 4.3 and up. Does not rely on the clipboard for Android versions 5.0 and up. diff --git a/app/src/main/res/xml/preference.xml b/app/src/main/res/xml/preference.xml index 08f23787..b1c5e4d0 100644 --- a/app/src/main/res/xml/preference.xml +++ b/app/src/main/res/xml/preference.xml @@ -6,6 +6,13 @@ app:defaultValue="true" app:key="autofill_enable" app:title="@string/pref_autofill_enable_title"/> + -- cgit v1.2.3