dotenorio / clipboard-manager-electron

A clipboard manager built with Electron
MIT License
110 stars 17 forks source link

Unlimited history #22

Open morozovsk opened 4 years ago

morozovsk commented 4 years ago

Hi,

The Windows open-source clipboard manager Ditto has an unique feature which I've yet to find in any Linux clipboard manager: unlimited history.

That is, there can be no limit to the number of stored entries. All entries are saved in an SQLite database, which is indexed with SQLite's excellent full text indexing. This allows incrementally searching through hundreds of thousands of clipboard entries in seconds.

I have found this to be incredibly convenient, as it means that I can always cut instead of delete anything, with the peace of mind that I can always recover it later. It also allows me to quickly paste in code snippets written any amount of time ago.

Would this be a viable feature request for this project?

https://github.com/hluk/CopyQ/issues/510

dotenorio commented 4 years ago

It's a good idea but i need to think about unlimited history... We copy many things daytime and it occupies much space on days in a row.

Fine, i'll go think about all this and put updates here.

Thank's!

morozovsk commented 4 years ago

I use copyQ now. I have just about 10 mb per two month.

dotenorio commented 4 years ago

Ok, i'll try to do and test it!

Maybe, i'll do this with cloud database. Maybe...

morozovsk commented 4 years ago

I wanted to fork your project and use sqlite but it is difficult to build app with sqlite. So now I try to use Dexie.js . It uses indexed_db (it'is already inside chrome) and I don't have any problem with compilation. But now I have another problem. I can't create search input in tray menu so I need to create window.

dotenorio commented 4 years ago

Nice!!

What's the problem with build?

dotenorio commented 4 years ago

About search input. Yes! You need to do new window!

morozovsk commented 4 years ago

What's the problem with build?

I installed sqlite3. I can use it from test file in the same folder. But when I try "npm start" or "npm build" I have error like "couldn't find .../.../sqlite3.node"

dotenorio commented 4 years ago

Hmmm, understand...

Dexie.js can be the best solution in this case!