dialect-app / dialect

A translation app for GNOME.
GNU General Public License v3.0
596 stars 69 forks source link

Add --selection cli option to translate primary clipboard contents #362

Closed rafaelmardojai closed 6 months ago

rafaelmardojai commented 6 months ago

Fixes #347

This also refactors our CLI handing a bit so we don't need to have a separate route for args on launch.

rafaelmardojai commented 6 months ago

Captura desde 2023-12-04 22-51-49

Captura desde 2023-12-04 22-54-30

mufeedali commented 6 months ago

Need to be on GNOME to test this, so putting it off for now. Maybe tomorrow. Or if you feel confident enough, you could merge as is too i guess.

rafaelmardojai commented 6 months ago

Need to be on GNOME to test this, so putting it off for now. Maybe tomorrow. Or if you feel confident enough, you could merge as is too i guess.

If code looks good to you then I guess can be merged, the change is kinda small and I tested it a few times.

Btw, any limitation why you can't test it on plasma?

rafaelmardojai commented 6 months ago

It should work on any wayland compositor implementing the primary selection protocol.