-
-
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
Add a -n (--notes) option to keepassxc-cli add
and edit
commands
#4646
Add a -n (--notes) option to keepassxc-cli add
and edit
commands
#4646
Conversation
Technically you can do this by specifying an attribute of name "Notes" from the command line. I do like the shortcut though! |
Oh no! Did I do this as a result of failing to read the manual properly? |
@droidmonkey @grimkor I feel like it makes sense to have a standalone option for that, since the notes are part of the primary attributes set. Since the notes are a multilines text field, should we split the value on Also, some new unit tests for the option would be nice :) |
Possibly? It's certainly not intuitive unless you know how kdbx works. |
Thanks |
Sure I can take a look at splitting the values based on With regards to the attributes that @droidmonkey mentioned I went back to take a look at the add & edit but couldn't see where you can specify additional attributes in those. |
You're right, we also need a way to add arbitrary attributes to entries. |
6404259
to
efa11d2
Compare
Thanks |
0fded03
to
c733f77
Compare
I'll be honest guys I'm way out of my depth here. There was a merge conflict and I thought I had it but I don't. The errors I can see from TeamCity are outside of my scope of comfort and I don't really want to keep making changes without understanding the language and the project. Not sure what you would want done here but I am happy to assist where possible. |
@grimkor @droidmonkey I feel like this one is almost ready to merge. We'd just have to make sure it's correctly rebased with |
Agree |
c733f77
to
ee38ca9
Compare
Rebased and ready for merge. I cleaned up the code a bit too. |
Was working on exporting my data from Bitwarden where I use notes to KeePass and noticed the keepassxc-cli was missing notes as an option for adding and editing records. Looked easy enough to plug in so figured I would give it a go. Hopefully it is to taste!
Screenshots
Testing strategy
Manual testing performed with existing and newly created databases through the develop branch version. Changes show to be reflected correctly in the databases.
Type of change