hluk / CopyQ

Clipboard manager with advanced features
GNU General Public License v3.0
8.26k stars 430 forks source link

Merge multiple CopyQ instances #1875

Open robertstrom opened 2 years ago

robertstrom commented 2 years ago

Is your feature request related to a problem? Please describe. Kind of ... I maintain a bunch of different personal computers with CopyQ on them and there are sometimes when I capture something on one that I would like to eventually have on all of them and a cloud or centralized file storage solution may not always be possible.

Describe the solution you'd like I know that there are some ways to sync CopyQ (one of them being on a NAS, which I tried and it failed pretty well. I reported that here and it looks like it is still on the list). I am wondering if there is some way besides syncing to a NAS or some WebDav, or cloud service (Dropbox, OneDrive, etc.) that you could take the contents of the CopyQ .config/copyq directory (or it's Windows equivalent) and put them into two, or three, or more different directories on the same computer and then run a command to merge them all into one copyq repository that could then be brought back into the copyq directory structure with all the unique contents of all two, or three, or more instances merged together.

Describe alternatives you've considered CopyQ sync to NAS which I was not able to get to work.

Additional context Let me know if you have any questions, etc. / Thanks!

gabbymouth commented 2 years ago

It would probably be possible with some scripting dumping each tab and running diff on them. Then you could write the diffs to the proper tabs. This could be done mostly with the copy executable commands.