-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Adding a best option to clip to copy a password of the best match #4489
Adding a best option to clip to copy a password of the best match #4489
Conversation
The best option copy the password from the best match if only one matching entry exists.
97cf956
to
fe8510c
Compare
Hello I didn't found documentation or tests on the CLI to update. Could you confirm that it's ok ? |
The best option copy the password from the best match if only one matching entry exists.
226af2d
to
d3e7b92
Compare
The best option copy the password from the best match if only one matching entry exists.
d3e7b92
to
52a2c5f
Compare
The best option copy the password from the best match if only one matching entry exists.
52a2c5f
to
a7c2303
Compare
The best option copy the password from the best match if only one matching entry exists.
a7c2303
to
709a377
Compare
The MacOS build fails because of ssh connection issue. It does not seem related to my changes. |
The best option copy the password from the best match if only one matching entry exists.
e81c180
to
1b79b73
Compare
The best option copy the password from the best match if only one matching entry exists.
1b79b73
to
4ad5943
Compare
The best option copy the password from the best match if only one matching entry exists.
4ad5943
to
c737684
Compare
The best option copy the password from the best match if only one matching entry exists.
The best option copy the password from the best match if only one matching entry exists.
c737684
to
752caad
Compare
Hi @lerignoux ! Thanks for the PR. There is a manpage for the CLI located in Tests for the CLI are located in Displaying which entry was used is a nice touch 👍 |
83659e6
to
d76b019
Compare
The best option copy the password from the best match if only one matching entry exists.
Hello Thank you @louib for the info. I updated the manual and tests. Though I don't manage to run the cli test on my machine. tests seem to run well but the cli test is not run. |
0b96ca9
to
4099066
Compare
@louib would you have any info about my previous commit ? i would like to add a fixture to the test DB to add a relevant test for this new feature. Cheers |
@lerignoux for the CLI tests to run, you need to configure the project with The password of the test database must be somewhere in the |
09ec0b5
to
29ccefb
Compare
Yeah thanks a lot @louib it's much easier when I can run the tests directly :p tell me if I can do anything else ! |
The best option copy the password from the best match if only one matching entry exists. Adding clip best option documentation Adding unit tests on the new clip --best option
29ccefb
to
8de2e12
Compare
This is super slick, love it! |
if only one matching entry exists
I added an option to do a best effort search when doing a clip.
For instance if I have an entry
****/paypal/account
and do akeepassxc-cli clip -b db.kdbx payp
it will search for a matching entry and clip it if it's unique. This make the search for a password much faster even if you dont know the exact name/case ...Type of change
Description and Context
I will use the cli exclusively to copy my passwords but it is difficult to remember the exact name we use for the key and slow to find it back. If you know you have a gmail for instance entry it helps you to clip it even with an approximate title.
on failure to find a single one it will display all matching entries enabling you to specify the right one.
Fixes #4270 that I opened on it
Screenshots
Testing strategy
Try to call clip without the -b option, it should keep the previous behavior:
Call clip -b and some sub string of your entries. it should
I didn't see any tests on the CLI, and I doubt adding unit tests on this is relevant.
Checklist:
-DWITH_ASAN=ON
.