Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve on macos: tries to get text directly via AppleScript from the frontmost application before using command+c #98

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nohzafk
Copy link

@nohzafk nohzafk commented Nov 29, 2024

Original Issue:

  • The original code only used Command+C and clipboard, which didn't properly handle fresh selections
  • It would often insert old clipboard content instead of the current selection

Solution Implemented, added a two-step approach to get selected text:

  • First tries to get text directly via AppleScript from the frontmost application
  • Falls back to Command+C method only if direct selection fails

… frontmost application before using command+c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant