keepassxc icon indicating copy to clipboard operation
keepassxc copied to clipboard

Allow Copy/Paste of entries and groups between open databases

Open jsoref opened this issue 8 years ago • 28 comments

#171 talks about the problem of a database getting out of sync

The usual workaround to this is to make another checkout of the database, open it, and then copy over the information.

Expected Behavior

  • It should be possible to copy an object (or tree) and paste it into another database

Current Behavior

Everything has to be done by hand

jsoref avatar Jan 19 '17 01:01 jsoref

Does the merge feature do what you want? If not, please state in more detail how you want to copy things from one database to another.

phoerious avatar Jan 19 '17 01:01 phoerious

Closing due to lack of feedback.

phoerious avatar Feb 26 '17 21:02 phoerious

I think it's about being able to copy/paste between databases, like KeePass (Windows / C#) can, with Ctrl-Shift-C and Ctrl-Shift-V. I tried that key combination in KeePassXC and nothing happened.

Merge functionality seems to be about reducing the number of databases, whereas generic copy/paste functionality can be used to split a database into several databases, in addition to manual merge of course.

bjornfor avatar Apr 15 '17 22:04 bjornfor

This wouldn't be that hard to implement since it's very similar to doing a merge on a tree or single object in the database. I think this should be reopened.

droidmonkey avatar Apr 16 '17 12:04 droidmonkey

This should also be accomplished via drag/drop between open database tabs.

droidmonkey avatar Oct 06 '18 19:10 droidmonkey

+1

hi-ko avatar May 05 '19 10:05 hi-ko

IMHO this function is desperately needed! especially in our company i have regularly to move entries between databases because of different projects, change of access levels etc... copying every item of bigger entries one by one is really tedious and error-prone!

i know, a kind of a workaround is exporting, deleting the not needed entries and importing the remaining ones to the new database. DISCLAIMER: i really don't recommend this (especially not on unencrypted storages) because you are storing your entire database unencrypted on your hard drive! and at the latest with forensic tools it may be easy (even after quite a while) to recover the whole unencrypted database. --> and i don't want to use KeePass (even not for this one task) because it looks sooo ugly and does not integrate a bit into my linux-desktop. :frowning_face:

btw: an option to copy/move only the current entry or including the whole history would be the icing on the cake. :wink:

DJCrashdummy avatar May 21 '19 09:05 DJCrashdummy

@DJCrashdummy it sounds like you have an excellent use case for keeshare.

droidmonkey avatar May 21 '19 11:05 droidmonkey

@droidmonkey is there documentation any where on the Keeshare? I find issues for it in the issue queue and notes about it in the change log but I cannot seem to find any documentation on how to use it. Just looking for someone to point me in the right direction.

frederickjh avatar May 22 '19 08:05 frederickjh

@droidmonkey Ah ha! I just found the pull request that started KeeShare with a link to the updated Quickstart guide, however this appears to not yet be in the Quickstart Guide on the keepassxc.org website.

frederickjh avatar May 22 '19 08:05 frederickjh

So for anyone looking for the KeeShare documentation for now you can find it here.

frederickjh avatar May 22 '19 08:05 frederickjh

Whoops good point need to update that

droidmonkey avatar May 22 '19 10:05 droidmonkey

@droidmonkey Does KeeShare work with any Android apps yet? Or should I open an issue for that with the Android apps?

frederickjh avatar May 22 '19 13:05 frederickjh

I don't think so, but you can open the database separately from the share as well.

droidmonkey avatar May 22 '19 15:05 droidmonkey

Drag&Drop is already possible Ctrl+C/V may be an interesting feature to implement.

phoerious avatar Oct 26 '19 16:10 phoerious

Drag&Drop is already possible Ctrl+C/V may be an interesting feature to implement.

Drag&Drop seems to be unstable. I think I used it in the past, but when trying now it does not work. Using Fedora 32, GNOME on wayland and keepassxc 2.6.0 I cannot drag and drop entries between two open databases.

laolux avatar Aug 04 '20 02:08 laolux

Qt bug with wayland

droidmonkey avatar Aug 04 '20 02:08 droidmonkey

Qt bug with wayland

I found https://bugreports.qt.io/browse/QTBUG-80303, but following references and MR, that bug should be fixed for Gnome 3.34 Fedora 32 is 3.36...

ftoral avatar Aug 28 '20 20:08 ftoral

https://bugreports.qt.io/browse/QTBUG-68599

It's fixed in Qt 5.15.0

droidmonkey avatar Aug 28 '20 20:08 droidmonkey

i wanted to mention this separately because it can become critical in some cases: although copy/move of entries is somehow possible, it just copies the current state of the entry, not its history! - so be aware, that you'll lose the history (which is really "unfortunate", especially if you move an entry).

DJCrashdummy avatar Dec 10 '20 11:12 DJCrashdummy

~~That is not true if you are using 2.6.2~~

droidmonkey avatar Dec 10 '20 11:12 droidmonkey

unfortunately, i must insist on yes! i'm using KeePassXC - Version 2.6.2 Revision: e9b9582 installed via PPA, and tested it extensively before posting.

DJCrashdummy avatar Dec 11 '20 08:12 DJCrashdummy

You are correct, wow that is a huge error. This will be fixed in 2.6.3

droidmonkey avatar Dec 11 '20 12:12 droidmonkey

as already mentioned a while ago: it can be a nice (optional) feature regarding convenience to just copy the current state without the history... but this being the default even when moving an entry can lead to some kind of a disaster.

DJCrashdummy avatar Dec 14 '20 09:12 DJCrashdummy

As stated in my duplicate bugreport #8317 I would go for the following default:

  • Moving when dragging & dropping inside the same database
  • Copying when dropping in another database
  • Defaults can be overwritten/forced by pressing CTRL (copy) and SHIFT (move)

Benefits:

  • It is intuitive and easy (my mum can do)
  • You will not loose data accidentially
  • You could still move the data by holding shift (currently you need to hold CTRL to copy)
  • Its the same behavior as filesystems do

I'd argument that moving is more common for the same database while copy is for another. This behavior is similar to USB Stick handling in filesystem managers. I was really lost when I used the feature the first time, and my original entry was gone. Luckly I am a tech-guy who knows that I need to press CTRL. My mum does not. My mum would just drag it. And if she really wants to move the entry, she would copy it and delete it in the old. But in most cases she is safe to not loose data. That's KISS.

Do you guys agree?

NicoHood avatar Jul 29 '22 19:07 NicoHood

That's certainly my expectation. The request is just about copying from one database to another. I didn't envision changes in behavior for operations within a single database.

jsoref avatar Jul 29 '22 21:07 jsoref