-
Notifications
You must be signed in to change notification settings - Fork 131
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
feat: copy and cut autocapture #1047
Conversation
Size Change: +2.68 kB (0%) Total Size: 864 kB
ℹ️ View Unchanged
|
this is very early @daibhin but I'm interested for your subconscious to chew on it :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will think about it a bit more but overall think it's pretty neat. Would never have guessed it was as possible and feels like it could be useful in some niche cases
More than once a user has said it would be useful for them if we autocaptured people selecting text on the page
on testing it we found that selecting text would be noisy. we had to debounce events to avoid triggering multiple events even in the simple case
Worse if someone holds down CTRL and SHIFT then every 500ms hits left arrow until they've selected 100 characters, should we capture 100 events, or wait N seconds and risk missing the event
but we can listen to cut and copy events, and they're concrete, it did or didn't fire
you can't read the clipboard directly but we can get the selection from the window when we see a cut/copy event. If there's selected text then we assume that's what the user just copied
it's implemented as an extension to autocapture so we get all the allow and denylist functionality "for free"