savedra1 / clipse

Configurable TUI clipboard manager for Unix
MIT License
314 stars 12 forks source link

Integration with other backends #40

Closed Heus-Sueh closed 5 months ago

Heus-Sueh commented 5 months ago

Do you intend to integrate the project with other backends such as: cliphist, clipman or copyq?

I ask this because some or all of those I mentioned store the history in some .json that clipse could read instead of creating one of its own

savedra1 commented 5 months ago

Hi @Heus-Sueh,

Thank you for raising this!

To answer your question, this would not be planned as the goal of clipse is to be it's own self-sufficient clipboard and the only one needed. Furthermore, clipse also uses a different json schema to any of those examples given to support the specific Bubbletea formatting in use, meaning a considerable amount if logic/refactor would be required to achecive a "one size fits all" approach. Essentially, the benefit from implementing this would not be worth the complexity/ engineering effort.

I would also add that the history file used for clipse can be redefined in the config.json file, meaning this could be set to the same json file that clipman/copyq use, but the schema used there would cause a panic when clipse tries to pass the data.

I hope that explains well enough and I will close this as Wont do for now but feel free to respond if you think I've missed anything :smile: