WritingTools icon indicating copy to clipboard operation
WritingTools copied to clipboard

[fix/ctrl_c_simulation] Add sleep duration before Ctrl+C for clipboard update

Open BrunoGeorgevich opened this issue 8 months ago • 2 comments

Type of change

Fix

Purpose of the PR

This PR introduces a sleep duration before executing the Ctrl+C command. This is to ensure that the clipboard has sufficient time to update with the desired content, preventing issues where the copy operation might fail due to the command being issued too quickly.

Changes overview

  • src/main.py

Issues Related

#195

BrunoGeorgevich avatar May 21 '25 14:05 BrunoGeorgevich

@theJayTea any updates on this?

mreduar avatar Aug 12 '25 19:08 mreduar

Hey everyone!

@BrunoGeorgevich, thanks so much for this PR, looks like it will fix issues for some people.

For the upcoming update, I have plans to add a “compatibility mode" toggle which does this and more.

This way, users for whom Writing Tools works fine already won't have the additional delay added to their experience, while users with issues get the compatibility mode with very safe timers (and maybe a removed "Ask your AI" chat mode to reduce the impact of the safe timers).

I haven’t been able to finish the upcoming update yet (and don’t think I can in the next 3 weeks :( ) as I'm currently in the process of moving to the US for my undergrad and have been super busy.

Even if I don’t end up merging this PR (as my compatibility mode implementation already takes care of it), I can still credit you in the contributors list if you'd like :)

theJayTea avatar Aug 13 '25 08:08 theJayTea